{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pyecharts"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>country</th>\n",
       "      <th>ratef</th>\n",
       "      <th>rates</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Afghanistan</td>\n",
       "      <td>8.00</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Angola</td>\n",
       "      <td>4.00</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>Albania</td>\n",
       "      <td>9.00</td>\n",
       "      <td>9.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>United Arab Emirates</td>\n",
       "      <td>10.00</td>\n",
       "      <td>10.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>Argentina</td>\n",
       "      <td>7.00</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>Armenia</td>\n",
       "      <td>6.00</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>Antigua and Barbuda</td>\n",
       "      <td>4.00</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>Australia</td>\n",
       "      <td>8.00</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>Austria</td>\n",
       "      <td>5.00</td>\n",
       "      <td>5.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>Azerbaijan</td>\n",
       "      <td>10.00</td>\n",
       "      <td>10.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>Burundi</td>\n",
       "      <td>8.00</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>Belgium</td>\n",
       "      <td>8.00</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>Benin</td>\n",
       "      <td>7.00</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>Burkina Faso</td>\n",
       "      <td>7.00</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>Bangladesh</td>\n",
       "      <td>6.00</td>\n",
       "      <td>6.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>Bulgaria</td>\n",
       "      <td>10.00</td>\n",
       "      <td>10.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>Bahrain</td>\n",
       "      <td>8.00</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>Bahamas, The</td>\n",
       "      <td>2.00</td>\n",
       "      <td>3.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>Bosnia and Herzegovina</td>\n",
       "      <td>3.00</td>\n",
       "      <td>3.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>Belarus</td>\n",
       "      <td>7.00</td>\n",
       "      <td>6.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>Belize</td>\n",
       "      <td>3.00</td>\n",
       "      <td>3.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>Bolivia</td>\n",
       "      <td>1.00</td>\n",
       "      <td>1.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>Brazil</td>\n",
       "      <td>5.00</td>\n",
       "      <td>5.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>Barbados</td>\n",
       "      <td>2.00</td>\n",
       "      <td>2.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>Brunei Darussalam</td>\n",
       "      <td>4.00</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>Bhutan</td>\n",
       "      <td>4.00</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>Botswana</td>\n",
       "      <td>7.00</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>Central African Republic</td>\n",
       "      <td>7.00</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>Canada</td>\n",
       "      <td>8.00</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>Switzerland</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>165</th>\n",
       "      <td>Sweden</td>\n",
       "      <td>8.00</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>166</th>\n",
       "      <td>Eswatini</td>\n",
       "      <td>2.00</td>\n",
       "      <td>2.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>167</th>\n",
       "      <td>Seychelles</td>\n",
       "      <td>4.00</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>168</th>\n",
       "      <td>Syrian Arab Republic</td>\n",
       "      <td>7.00</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>169</th>\n",
       "      <td>Chad</td>\n",
       "      <td>7.00</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>170</th>\n",
       "      <td>Togo</td>\n",
       "      <td>7.00</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>171</th>\n",
       "      <td>Thailand</td>\n",
       "      <td>10.00</td>\n",
       "      <td>10.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>172</th>\n",
       "      <td>Tajikistan</td>\n",
       "      <td>8.00</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>173</th>\n",
       "      <td>Timor-Leste</td>\n",
       "      <td>5.00</td>\n",
       "      <td>5.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>174</th>\n",
       "      <td>Tonga</td>\n",
       "      <td>3.00</td>\n",
       "      <td>3.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>175</th>\n",
       "      <td>South Asia (IDA &amp; IBRD)</td>\n",
       "      <td>5.75</td>\n",
       "      <td>5.75</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>176</th>\n",
       "      <td>Trinidad and Tobago</td>\n",
       "      <td>4.00</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>177</th>\n",
       "      <td>Tunisia</td>\n",
       "      <td>6.00</td>\n",
       "      <td>6.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>178</th>\n",
       "      <td>Turkey</td>\n",
       "      <td>9.00</td>\n",
       "      <td>9.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>179</th>\n",
       "      <td>Tanzania</td>\n",
       "      <td>2.00</td>\n",
       "      <td>2.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>180</th>\n",
       "      <td>Uganda</td>\n",
       "      <td>3.00</td>\n",
       "      <td>3.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>181</th>\n",
       "      <td>Ukraine</td>\n",
       "      <td>8.00</td>\n",
       "      <td>9.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>182</th>\n",
       "      <td>Uruguay</td>\n",
       "      <td>3.00</td>\n",
       "      <td>3.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>183</th>\n",
       "      <td>United States</td>\n",
       "      <td>7.40</td>\n",
       "      <td>7.40</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>184</th>\n",
       "      <td>Uzbekistan</td>\n",
       "      <td>8.00</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>185</th>\n",
       "      <td>St. Vincent and the Grenadines</td>\n",
       "      <td>4.00</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>186</th>\n",
       "      <td>Venezuela, RB</td>\n",
       "      <td>3.00</td>\n",
       "      <td>3.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>187</th>\n",
       "      <td>Vietnam</td>\n",
       "      <td>7.00</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>188</th>\n",
       "      <td>Vanuatu</td>\n",
       "      <td>5.00</td>\n",
       "      <td>5.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>189</th>\n",
       "      <td>Samoa</td>\n",
       "      <td>5.00</td>\n",
       "      <td>5.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>190</th>\n",
       "      <td>Kosovo</td>\n",
       "      <td>6.00</td>\n",
       "      <td>9.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>191</th>\n",
       "      <td>Yemen, Rep.</td>\n",
       "      <td>6.00</td>\n",
       "      <td>6.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>192</th>\n",
       "      <td>South Africa</td>\n",
       "      <td>8.00</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>193</th>\n",
       "      <td>Zambia</td>\n",
       "      <td>4.00</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>194</th>\n",
       "      <td>Zimbabwe</td>\n",
       "      <td>8.00</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>195 rows × 3 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                            country  ratef  rates\n",
       "0                       Afghanistan   8.00   8.00\n",
       "1                            Angola   4.00   4.00\n",
       "2                           Albania   9.00   9.00\n",
       "3              United Arab Emirates  10.00  10.00\n",
       "4                         Argentina   7.00   7.00\n",
       "5                           Armenia   6.00   7.00\n",
       "6               Antigua and Barbuda   4.00   4.00\n",
       "7                         Australia   8.00   8.00\n",
       "8                           Austria   5.00   5.00\n",
       "9                        Azerbaijan  10.00  10.00\n",
       "10                          Burundi   8.00   8.00\n",
       "11                          Belgium   8.00   8.00\n",
       "12                            Benin   7.00   7.00\n",
       "13                     Burkina Faso   7.00   7.00\n",
       "14                       Bangladesh   6.00   6.00\n",
       "15                         Bulgaria  10.00  10.00\n",
       "16                          Bahrain   8.00   8.00\n",
       "17                     Bahamas, The   2.00   3.00\n",
       "18           Bosnia and Herzegovina   3.00   3.00\n",
       "19                          Belarus   7.00   6.00\n",
       "20                           Belize   3.00   3.00\n",
       "21                          Bolivia   1.00   1.00\n",
       "22                           Brazil   5.00   5.00\n",
       "23                         Barbados   2.00   2.00\n",
       "24                Brunei Darussalam   4.00   4.00\n",
       "25                           Bhutan   4.00   4.00\n",
       "26                         Botswana   7.00   7.00\n",
       "27         Central African Republic   7.00   7.00\n",
       "28                           Canada   8.00   8.00\n",
       "29                      Switzerland   0.00   0.00\n",
       "..                              ...    ...    ...\n",
       "165                          Sweden   8.00   8.00\n",
       "166                        Eswatini   2.00   2.00\n",
       "167                      Seychelles   4.00   4.00\n",
       "168            Syrian Arab Republic   7.00   7.00\n",
       "169                            Chad   7.00   7.00\n",
       "170                            Togo   7.00   7.00\n",
       "171                        Thailand  10.00  10.00\n",
       "172                      Tajikistan   8.00   8.00\n",
       "173                     Timor-Leste   5.00   5.00\n",
       "174                           Tonga   3.00   3.00\n",
       "175         South Asia (IDA & IBRD)   5.75   5.75\n",
       "176             Trinidad and Tobago   4.00   4.00\n",
       "177                         Tunisia   6.00   6.00\n",
       "178                          Turkey   9.00   9.00\n",
       "179                        Tanzania   2.00   2.00\n",
       "180                          Uganda   3.00   3.00\n",
       "181                         Ukraine   8.00   9.00\n",
       "182                         Uruguay   3.00   3.00\n",
       "183                   United States   7.40   7.40\n",
       "184                      Uzbekistan   8.00   8.00\n",
       "185  St. Vincent and the Grenadines   4.00   4.00\n",
       "186                   Venezuela, RB   3.00   3.00\n",
       "187                         Vietnam   7.00   7.00\n",
       "188                         Vanuatu   5.00   5.00\n",
       "189                           Samoa   5.00   5.00\n",
       "190                          Kosovo   6.00   9.00\n",
       "191                     Yemen, Rep.   6.00   6.00\n",
       "192                    South Africa   8.00   8.00\n",
       "193                          Zambia   4.00   4.00\n",
       "194                        Zimbabwe   8.00   8.00\n",
       "\n",
       "[195 rows x 3 columns]"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import csv\n",
    "import pandas as pd\n",
    "df = pd.read_csv(\"Business extent of disclosure indexs.csv\") # 文件要放在同一个目录下面才可以运行\n",
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'Afghanistan': 8.0,\n",
       "  'Angola': 4.0,\n",
       "  'Albania': 9.0,\n",
       "  'United Arab Emirates': 10.0,\n",
       "  'Argentina': 7.0,\n",
       "  'Armenia': 6.0,\n",
       "  'Antigua and Barbuda': 4.0,\n",
       "  'Australia': 8.0,\n",
       "  'Austria': 5.0,\n",
       "  'Azerbaijan': 10.0,\n",
       "  'Burundi': 8.0,\n",
       "  'Belgium': 8.0,\n",
       "  'Benin': 7.0,\n",
       "  'Burkina Faso': 7.0,\n",
       "  'Bangladesh': 6.0,\n",
       "  'Bulgaria': 10.0,\n",
       "  'Bahrain': 8.0,\n",
       "  'Bahamas, The': 2.0,\n",
       "  'Bosnia and Herzegovina': 3.0,\n",
       "  'Belarus': 7.0,\n",
       "  'Belize': 3.0,\n",
       "  'Bolivia': 1.0,\n",
       "  'Brazil': 5.0,\n",
       "  'Barbados': 2.0,\n",
       "  'Brunei Darussalam': 4.0,\n",
       "  'Bhutan': 4.0,\n",
       "  'Botswana': 7.0,\n",
       "  'Central African Republic': 7.0,\n",
       "  'Canada': 8.0,\n",
       "  'Switzerland': 0.0,\n",
       "  'Chile': 8.0,\n",
       "  'China': 10.0,\n",
       "  \"Cote d'Ivoire\": 7.0,\n",
       "  'Cameroon': 7.0,\n",
       "  'Congo, Dem. Rep.': 7.0,\n",
       "  'Congo, Rep.': 7.0,\n",
       "  'Colombia': 9.0,\n",
       "  'Comoros': 7.0,\n",
       "  'Cabo Verde': 1.0,\n",
       "  'Costa Rica': 5.0,\n",
       "  'Cyprus': 9.0,\n",
       "  'Czech Republic': 2.0,\n",
       "  'Germany': 5.0,\n",
       "  'Djibouti': 8.0,\n",
       "  'Dominica': 4.0,\n",
       "  'Denmark': 7.0,\n",
       "  'Dominican Republic': 5.0,\n",
       "  'Algeria': 4.0,\n",
       "  'East Asia & Pacific (excluding high income)': 5.3,\n",
       "  'Europe & Central Asia (excluding high income)': 7.5,\n",
       "  'Europe & Central Asia': 6.5,\n",
       "  'Ecuador': 2.0,\n",
       "  'Egypt, Arab Rep.': 8.0,\n",
       "  'Eritrea': 3.0,\n",
       "  'Spain': 7.0,\n",
       "  'Estonia': 8.0,\n",
       "  'Ethiopia': 3.0,\n",
       "  'Finland': 6.0,\n",
       "  'Fiji': 2.0,\n",
       "  'France': 8.0,\n",
       "  'Micronesia, Fed. Sts.': 0.0,\n",
       "  'Gabon': 7.0,\n",
       "  'United Kingdom': 10.0,\n",
       "  'Georgia': 9.0,\n",
       "  'Ghana': 7.0,\n",
       "  'Guinea': 7.0,\n",
       "  'Gambia, The': 2.0,\n",
       "  'Guinea-Bissau': 7.0,\n",
       "  'Equatorial Guinea': 7.0,\n",
       "  'Greece': 7.0,\n",
       "  'Grenada': 4.0,\n",
       "  'Guatemala': 3.0,\n",
       "  'Guyana': 5.0,\n",
       "  'Hong Kong SAR, China': 10.0,\n",
       "  'Honduras': 3.0,\n",
       "  'Croatia': 5.0,\n",
       "  'Haiti': 2.0,\n",
       "  'Hungary': 2.0,\n",
       "  'Indonesia': 10.0,\n",
       "  'India': 8.0,\n",
       "  'Ireland': 9.0,\n",
       "  'Iran, Islamic Rep.': 7.0,\n",
       "  'Iraq': 4.0,\n",
       "  'Iceland': 7.0,\n",
       "  'Israel': 7.0,\n",
       "  'Italy': 7.0,\n",
       "  'Jamaica': 4.0,\n",
       "  'Jordan': 4.0,\n",
       "  'Japan': 7.0,\n",
       "  'Kazakhstan': 9.0,\n",
       "  'Kenya': 10.0,\n",
       "  'Kyrgyz Republic': 7.0,\n",
       "  'Cambodia': 6.0,\n",
       "  'Kiribati': 6.0,\n",
       "  'St. Kitts and Nevis': 4.0,\n",
       "  'Korea, Rep.': 8.0,\n",
       "  'Kuwait': 5.0,\n",
       "  'Lao PDR': 6.0,\n",
       "  'Lebanon': 9.0,\n",
       "  'Liberia': 4.0,\n",
       "  'Libya': 4.0,\n",
       "  'St. Lucia': 4.0,\n",
       "  'Liechtenstein': 2.0,\n",
       "  'Sri Lanka': 8.0,\n",
       "  'Lesotho': 3.0,\n",
       "  'Lithuania': 7.0,\n",
       "  'Luxembourg': 6.0,\n",
       "  'Latvia': 5.0,\n",
       "  'Morocco': 9.0,\n",
       "  'Moldova': 7.0,\n",
       "  'Madagascar': 7.0,\n",
       "  'Maldives': 0.0,\n",
       "  'Mexico': 8.0,\n",
       "  'Marshall Islands': 2.0,\n",
       "  'North Macedonia': 10.0,\n",
       "  'Mali': 7.0,\n",
       "  'Malta': 3.0,\n",
       "  'Myanmar': 3.0,\n",
       "  'Montenegro': 5.0,\n",
       "  'Mongolia': 6.0,\n",
       "  'Mozambique': 5.0,\n",
       "  'Mauritania': 6.0,\n",
       "  'Mauritius': 7.0,\n",
       "  'Malawi': 4.0,\n",
       "  'Malaysia': 10.0,\n",
       "  'North America': 7.7,\n",
       "  'Namibia': 5.0,\n",
       "  'Niger': 7.0,\n",
       "  'Nigeria': 7.0,\n",
       "  'Nicaragua': 1.0,\n",
       "  'Netherlands': 4.0,\n",
       "  'Norway': 7.0,\n",
       "  'Nepal': 6.0,\n",
       "  'New Zealand': 10.0,\n",
       "  'Oman': 8.0,\n",
       "  'Pakistan': 6.0,\n",
       "  'Panama': 4.0,\n",
       "  'Peru': 9.0,\n",
       "  'Philippines': 2.0,\n",
       "  'Palau': 0.0,\n",
       "  'Papua New Guinea': 5.0,\n",
       "  'Poland': 7.0,\n",
       "  'Puerto Rico': 7.0,\n",
       "  'Portugal': 6.0,\n",
       "  'Paraguay': 6.0,\n",
       "  'West Bank and Gaza': 6.0,\n",
       "  'Qatar': 2.0,\n",
       "  'Romania': 9.0,\n",
       "  'Russian Federation': 6.0,\n",
       "  'Rwanda': 8.0,\n",
       "  'Saudi Arabia': 9.0,\n",
       "  'Sudan': 3.0,\n",
       "  'Senegal': 7.0,\n",
       "  'Singapore': 10.0,\n",
       "  'Solomon Islands': 3.0,\n",
       "  'Sierra Leone': 6.0,\n",
       "  'El Salvador': 3.0,\n",
       "  'San Marino': 3.0,\n",
       "  'Somalia': 0.0,\n",
       "  'Serbia': 4.0,\n",
       "  'South Sudan': 2.0,\n",
       "  'Sao Tome and Principe': 3.0,\n",
       "  'Suriname': 1.0,\n",
       "  'Slovak Republic': 3.0,\n",
       "  'Slovenia': 5.0,\n",
       "  'Sweden': 8.0,\n",
       "  'Eswatini': 2.0,\n",
       "  'Seychelles': 4.0,\n",
       "  'Syrian Arab Republic': 7.0,\n",
       "  'Chad': 7.0,\n",
       "  'Togo': 7.0,\n",
       "  'Thailand': 10.0,\n",
       "  'Tajikistan': 8.0,\n",
       "  'Timor-Leste': 5.0,\n",
       "  'Tonga': 3.0,\n",
       "  'South Asia (IDA & IBRD)': 5.75,\n",
       "  'Trinidad and Tobago': 4.0,\n",
       "  'Tunisia': 6.0,\n",
       "  'Turkey': 9.0,\n",
       "  'Tanzania': 2.0,\n",
       "  'Uganda': 3.0,\n",
       "  'Ukraine': 8.0,\n",
       "  'Uruguay': 3.0,\n",
       "  'United States': 7.4,\n",
       "  'Uzbekistan': 8.0,\n",
       "  'St. Vincent and the Grenadines': 4.0,\n",
       "  'Venezuela, RB': 3.0,\n",
       "  'Vietnam': 7.0,\n",
       "  'Vanuatu': 5.0,\n",
       "  'Samoa': 5.0,\n",
       "  'Kosovo': 6.0,\n",
       "  'Yemen, Rep.': 6.0,\n",
       "  'South Africa': 8.0,\n",
       "  'Zambia': 4.0,\n",
       "  'Zimbabwe': 8.0},\n",
       " {'Afghanistan': 8.0,\n",
       "  'Angola': 4.0,\n",
       "  'Albania': 9.0,\n",
       "  'United Arab Emirates': 10.0,\n",
       "  'Argentina': 7.0,\n",
       "  'Armenia': 7.0,\n",
       "  'Antigua and Barbuda': 4.0,\n",
       "  'Australia': 8.0,\n",
       "  'Austria': 5.0,\n",
       "  'Azerbaijan': 10.0,\n",
       "  'Burundi': 8.0,\n",
       "  'Belgium': 8.0,\n",
       "  'Benin': 7.0,\n",
       "  'Burkina Faso': 7.0,\n",
       "  'Bangladesh': 6.0,\n",
       "  'Bulgaria': 10.0,\n",
       "  'Bahrain': 8.0,\n",
       "  'Bahamas, The': 3.0,\n",
       "  'Bosnia and Herzegovina': 3.0,\n",
       "  'Belarus': 6.0,\n",
       "  'Belize': 3.0,\n",
       "  'Bolivia': 1.0,\n",
       "  'Brazil': 5.0,\n",
       "  'Barbados': 2.0,\n",
       "  'Brunei Darussalam': 4.0,\n",
       "  'Bhutan': 4.0,\n",
       "  'Botswana': 7.0,\n",
       "  'Central African Republic': 7.0,\n",
       "  'Canada': 8.0,\n",
       "  'Switzerland': 0.0,\n",
       "  'Chile': 8.0,\n",
       "  'China': 10.0,\n",
       "  \"Cote d'Ivoire\": 7.0,\n",
       "  'Cameroon': 7.0,\n",
       "  'Congo, Dem. Rep.': 7.0,\n",
       "  'Congo, Rep.': 7.0,\n",
       "  'Colombia': 9.0,\n",
       "  'Comoros': 7.0,\n",
       "  'Cabo Verde': 1.0,\n",
       "  'Costa Rica': 5.0,\n",
       "  'Cyprus': 9.0,\n",
       "  'Czech Republic': 2.0,\n",
       "  'Germany': 5.0,\n",
       "  'Djibouti': 8.0,\n",
       "  'Dominica': 4.0,\n",
       "  'Denmark': 7.0,\n",
       "  'Dominican Republic': 5.0,\n",
       "  'Algeria': 4.0,\n",
       "  'East Asia & Pacific (excluding high income)': 5.7,\n",
       "  'Europe & Central Asia (excluding high income)': 7.8,\n",
       "  'Europe & Central Asia': 6.66,\n",
       "  'Ecuador': 2.0,\n",
       "  'Egypt, Arab Rep.': 8.0,\n",
       "  'Eritrea': 3.0,\n",
       "  'Spain': 7.0,\n",
       "  'Estonia': 8.0,\n",
       "  'Ethiopia': 3.0,\n",
       "  'Finland': 6.0,\n",
       "  'Fiji': 2.0,\n",
       "  'France': 8.0,\n",
       "  'Micronesia, Fed. Sts.': 0.0,\n",
       "  'Gabon': 7.0,\n",
       "  'United Kingdom': 10.0,\n",
       "  'Georgia': 9.0,\n",
       "  'Ghana': 7.0,\n",
       "  'Guinea': 7.0,\n",
       "  'Gambia, The': 2.0,\n",
       "  'Guinea-Bissau': 7.0,\n",
       "  'Equatorial Guinea': 7.0,\n",
       "  'Greece': 9.0,\n",
       "  'Grenada': 4.0,\n",
       "  'Guatemala': 3.0,\n",
       "  'Guyana': 5.0,\n",
       "  'Hong Kong SAR, China': 10.0,\n",
       "  'Honduras': 3.0,\n",
       "  'Croatia': 5.0,\n",
       "  'Haiti': 2.0,\n",
       "  'Hungary': 2.0,\n",
       "  'Indonesia': 10.0,\n",
       "  'India': 8.0,\n",
       "  'Ireland': 9.0,\n",
       "  'Iran, Islamic Rep.': 7.0,\n",
       "  'Iraq': 4.0,\n",
       "  'Iceland': 7.0,\n",
       "  'Israel': 7.0,\n",
       "  'Italy': 7.0,\n",
       "  'Jamaica': 4.0,\n",
       "  'Jordan': 4.0,\n",
       "  'Japan': 7.0,\n",
       "  'Kazakhstan': 9.0,\n",
       "  'Kenya': 10.0,\n",
       "  'Kyrgyz Republic': 7.0,\n",
       "  'Cambodia': 6.0,\n",
       "  'Kiribati': 6.0,\n",
       "  'St. Kitts and Nevis': 4.0,\n",
       "  'Korea, Rep.': 8.0,\n",
       "  'Kuwait': 5.0,\n",
       "  'Lao PDR': 6.0,\n",
       "  'Lebanon': 9.0,\n",
       "  'Liberia': 4.0,\n",
       "  'Libya': 4.0,\n",
       "  'St. Lucia': 4.0,\n",
       "  'Liechtenstein': 2.0,\n",
       "  'Sri Lanka': 8.0,\n",
       "  'Lesotho': 3.0,\n",
       "  'Lithuania': 7.0,\n",
       "  'Luxembourg': 6.0,\n",
       "  'Latvia': 5.0,\n",
       "  'Morocco': 9.0,\n",
       "  'Moldova': 7.0,\n",
       "  'Madagascar': 7.0,\n",
       "  'Maldives': 0.0,\n",
       "  'Mexico': 8.0,\n",
       "  'Marshall Islands': 2.0,\n",
       "  'North Macedonia': 10.0,\n",
       "  'Mali': 7.0,\n",
       "  'Malta': 3.0,\n",
       "  'Myanmar': 4.0,\n",
       "  'Montenegro': 5.0,\n",
       "  'Mongolia': 6.0,\n",
       "  'Mozambique': 5.0,\n",
       "  'Mauritania': 6.0,\n",
       "  'Mauritius': 7.0,\n",
       "  'Malawi': 4.0,\n",
       "  'Malaysia': 10.0,\n",
       "  'North America': 7.7,\n",
       "  'Namibia': 5.0,\n",
       "  'Niger': 7.0,\n",
       "  'Nigeria': 7.0,\n",
       "  'Nicaragua': 1.0,\n",
       "  'Netherlands': 4.0,\n",
       "  'Norway': 7.0,\n",
       "  'Nepal': 6.0,\n",
       "  'New Zealand': 10.0,\n",
       "  'Oman': 8.0,\n",
       "  'Pakistan': 6.0,\n",
       "  'Panama': 4.0,\n",
       "  'Peru': 9.0,\n",
       "  'Philippines': 9.0,\n",
       "  'Palau': 0.0,\n",
       "  'Papua New Guinea': 5.0,\n",
       "  'Poland': 7.0,\n",
       "  'Puerto Rico': 7.0,\n",
       "  'Portugal': 6.0,\n",
       "  'Paraguay': 6.0,\n",
       "  'West Bank and Gaza': 6.0,\n",
       "  'Qatar': 2.0,\n",
       "  'Romania': 9.0,\n",
       "  'Russian Federation': 6.0,\n",
       "  'Rwanda': 8.0,\n",
       "  'Saudi Arabia': 9.0,\n",
       "  'Sudan': 3.0,\n",
       "  'Senegal': 7.0,\n",
       "  'Singapore': 10.0,\n",
       "  'Solomon Islands': 3.0,\n",
       "  'Sierra Leone': 6.0,\n",
       "  'El Salvador': 3.0,\n",
       "  'San Marino': 3.0,\n",
       "  'Somalia': 0.0,\n",
       "  'Serbia': 6.0,\n",
       "  'South Sudan': 2.0,\n",
       "  'Sao Tome and Principe': 3.0,\n",
       "  'Suriname': 1.0,\n",
       "  'Slovak Republic': 3.0,\n",
       "  'Slovenia': 5.0,\n",
       "  'Sweden': 8.0,\n",
       "  'Eswatini': 2.0,\n",
       "  'Seychelles': 4.0,\n",
       "  'Syrian Arab Republic': 7.0,\n",
       "  'Chad': 7.0,\n",
       "  'Togo': 7.0,\n",
       "  'Thailand': 10.0,\n",
       "  'Tajikistan': 8.0,\n",
       "  'Timor-Leste': 5.0,\n",
       "  'Tonga': 3.0,\n",
       "  'South Asia (IDA & IBRD)': 5.75,\n",
       "  'Trinidad and Tobago': 4.0,\n",
       "  'Tunisia': 6.0,\n",
       "  'Turkey': 9.0,\n",
       "  'Tanzania': 2.0,\n",
       "  'Uganda': 3.0,\n",
       "  'Ukraine': 9.0,\n",
       "  'Uruguay': 3.0,\n",
       "  'United States': 7.4,\n",
       "  'Uzbekistan': 8.0,\n",
       "  'St. Vincent and the Grenadines': 4.0,\n",
       "  'Venezuela, RB': 3.0,\n",
       "  'Vietnam': 7.0,\n",
       "  'Vanuatu': 5.0,\n",
       "  'Samoa': 5.0,\n",
       "  'Kosovo': 9.0,\n",
       "  'Yemen, Rep.': 6.0,\n",
       "  'South Africa': 8.0,\n",
       "  'Zambia': 4.0,\n",
       "  'Zimbabwe': 8.0}]"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df.head(20)\n",
    "df.set_index('country').T.to_dict('ratenin')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://assets.pyecharts.org/assets/echarts.min', 'echarts-wordcloud':'https://assets.pyecharts.org/assets/echarts-wordcloud.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "        <div id=\"cf3d70e90ba14135b936d29a69f1fee7\" style=\"width:900px; height:500px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts', 'echarts-wordcloud'], function(echarts) {\n",
       "                var chart_cf3d70e90ba14135b936d29a69f1fee7 = echarts.init(\n",
       "                    document.getElementById('cf3d70e90ba14135b936d29a69f1fee7'), 'white', {renderer: 'canvas'});\n",
       "                var option_cf3d70e90ba14135b936d29a69f1fee7 = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"wordCloud\",\n",
       "            \"name\": \"\\u8bcd\\u4e91\",\n",
       "            \"shape\": \"circle\",\n",
       "            \"rotationRange\": [\n",
       "                -90,\n",
       "                90\n",
       "            ],\n",
       "            \"rotationStep\": 45,\n",
       "            \"girdSize\": 20,\n",
       "            \"sizeRange\": [\n",
       "                20,\n",
       "                100\n",
       "            ],\n",
       "            \"data\": [\n",
       "                {\n",
       "                    \"name\": \"Afghanistan\",\n",
       "                    \"value\": 8.0,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(159,5,92)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Angola\",\n",
       "                    \"value\": 4.0,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(0,103,113)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Albania\",\n",
       "                    \"value\": 9.0,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(80,141,16)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"United Arab Emirates\",\n",
       "                    \"value\": 10.0,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(44,58,159)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Argentina\",\n",
       "                    \"value\": 7.0,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(7,128,150)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Armenia\",\n",
       "                    \"value\": 7.0,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(48,82,74)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Antigua and Barbuda\",\n",
       "                    \"value\": 4.0,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(71,22,14)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Australia\",\n",
       "                    \"value\": 8.0,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(8,16,142)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Austria\",\n",
       "                    \"value\": 5.0,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(109,35,34)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Azerbaijan\",\n",
       "                    \"value\": 10.0,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(71,24,32)\"\n",
       "                        }\n",
       "                    }\n",
       "                }\n",
       "            ]\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [],\n",
       "            \"selected\": {},\n",
       "            \"show\": true\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0\n",
       "    },\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"WordCloud-\\u57fa\\u672c\\u793a\\u4f8b\"\n",
       "        }\n",
       "    ]\n",
       "};\n",
       "                chart_cf3d70e90ba14135b936d29a69f1fee7.setOption(option_cf3d70e90ba14135b936d29a69f1fee7);\n",
       "        });\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x1b2de9276d8>"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 词云图\n",
    "import pyecharts\n",
    "from pyecharts import options as opts\n",
    "from pyecharts.charts import Page, WordCloud\n",
    "from pyecharts.globals import SymbolType\n",
    "\n",
    "\n",
    "words = [\n",
    "    \n",
    "  ('Afghanistan', 8.0),\n",
    "  ('Angola', 4.0),\n",
    "  ('Albania', 9.0),\n",
    "  ('United Arab Emirates', 10.0),\n",
    "  ('Argentina', 7.0),\n",
    "  ('Armenia', 7.0),\n",
    "  ('Antigua and Barbuda', 4.0),\n",
    "  ('Australia', 8.0),\n",
    "  ('Austria', 5.0),\n",
    "  ('Azerbaijan', 10.0),\n",
    "]\n",
    "\n",
    "\n",
    "def wordcloud_base() -> WordCloud:\n",
    "    c = (\n",
    "        WordCloud()\n",
    "        .add(\"词云\", words ,word_size_range=[20, 100] )\n",
    "        .set_global_opts(title_opts=opts.TitleOpts(title=\"WordCloud-基本示例\"))\n",
    "    )\n",
    "    return c\n",
    "\n",
    "企业信息披露程度指数 = wordcloud_base()\n",
    "企业信息披露程度指数.render_notebook() "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 可以从中看出只要是越大显示的字体就越大说明就是越公开"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://assets.pyecharts.org/assets/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "        <div id=\"6294011669b8482b82315598a043bb13\" style=\"width:900px; height:500px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts'], function(echarts) {\n",
       "                var chart_6294011669b8482b82315598a043bb13 = echarts.init(\n",
       "                    document.getElementById('6294011669b8482b82315598a043bb13'), 'white', {renderer: 'canvas'});\n",
       "                var option_6294011669b8482b82315598a043bb13 = {\n",
       "    \"baseOption\": {\n",
       "        \"series\": [\n",
       "            {\n",
       "                \"type\": \"bar\",\n",
       "                \"name\": \"2018\",\n",
       "                \"data\": null,\n",
       "                \"barCategoryGap\": \"20%\",\n",
       "                \"label\": {\n",
       "                    \"show\": true,\n",
       "                    \"position\": \"top\",\n",
       "                    \"margin\": 8\n",
       "                }\n",
       "            },\n",
       "            {\n",
       "                \"type\": \"bar\",\n",
       "                \"name\": \"2019\",\n",
       "                \"data\": null,\n",
       "                \"barCategoryGap\": \"20%\",\n",
       "                \"label\": {\n",
       "                    \"show\": true,\n",
       "                    \"position\": \"top\",\n",
       "                    \"margin\": 8\n",
       "                }\n",
       "            }\n",
       "        ],\n",
       "        \"timeline\": {\n",
       "            \"axisType\": \"category\",\n",
       "            \"orient\": \"horizontal\",\n",
       "            \"autoPlay\": false,\n",
       "            \"loop\": true,\n",
       "            \"rewind\": false,\n",
       "            \"show\": true,\n",
       "            \"inverse\": false,\n",
       "            \"bottom\": \"-5px\",\n",
       "            \"data\": [\n",
       "                \"2018\\u5e74\",\n",
       "                \"2019\\u5e74\"\n",
       "            ]\n",
       "        },\n",
       "        \"xAxis\": [\n",
       "            {\n",
       "                \"show\": true,\n",
       "                \"scale\": false,\n",
       "                \"nameLocation\": \"end\",\n",
       "                \"nameGap\": 15,\n",
       "                \"gridIndex\": 0,\n",
       "                \"inverse\": false,\n",
       "                \"offset\": 0,\n",
       "                \"splitNumber\": 5,\n",
       "                \"minInterval\": 0,\n",
       "                \"splitLine\": {\n",
       "                    \"show\": false,\n",
       "                    \"lineStyle\": {\n",
       "                        \"width\": 1,\n",
       "                        \"opacity\": 1,\n",
       "                        \"curveness\": 0,\n",
       "                        \"type\": \"solid\"\n",
       "                    }\n",
       "                },\n",
       "                \"data\": [\n",
       "                    \"Afghanistan\",\n",
       "                    \"Angola\",\n",
       "                    \"Albania\",\n",
       "                    \"United Arab Emirates\",\n",
       "                    \"Argentina\",\n",
       "                    \"Armenia\",\n",
       "                    \"Antigua and Barbuda\",\n",
       "                    \"Australia\",\n",
       "                    \"Austria\",\n",
       "                    \"Azerbaijan\",\n",
       "                    \"Burundi\",\n",
       "                    \"Belgium\",\n",
       "                    \"Benin\",\n",
       "                    \"Burkina Faso\",\n",
       "                    \"Bangladesh\",\n",
       "                    \"Bulgaria\",\n",
       "                    \"Bahrain\",\n",
       "                    \"Bahamas, The\",\n",
       "                    \"Bosnia and Herzegovina\",\n",
       "                    \"Belarus\",\n",
       "                    \"Belize\",\n",
       "                    \"Bolivia\",\n",
       "                    \"Brazil\",\n",
       "                    \"Barbados\",\n",
       "                    \"Brunei Darussalam\",\n",
       "                    \"Bhutan\",\n",
       "                    \"Botswana\",\n",
       "                    \"Central African Republic\",\n",
       "                    \"Canada\",\n",
       "                    \"Switzerland\",\n",
       "                    \"Chile\",\n",
       "                    \"China\",\n",
       "                    \"Cote d'Ivoire\",\n",
       "                    \"Cameroon\",\n",
       "                    \"Congo, Dem. Rep.\",\n",
       "                    \"Congo, Rep.\",\n",
       "                    \"Colombia\",\n",
       "                    \"Comoros\",\n",
       "                    \"Cabo Verde\",\n",
       "                    \"Costa Rica\",\n",
       "                    \"Cyprus\",\n",
       "                    \"Czech Republic\",\n",
       "                    \"Germany\",\n",
       "                    \"Djibouti\",\n",
       "                    \"Dominica\",\n",
       "                    \"Denmark\",\n",
       "                    \"Dominican Republic\",\n",
       "                    \"Algeria\",\n",
       "                    \"East Asia & Pacific (excluding high income)\",\n",
       "                    \"Europe & Central Asia (excluding high income)\",\n",
       "                    \"Europe & Central Asia\",\n",
       "                    \"Ecuador\",\n",
       "                    \"Egypt, Arab Rep.\",\n",
       "                    \"Eritrea\",\n",
       "                    \"Spain\",\n",
       "                    \"Estonia\",\n",
       "                    \"Ethiopia\",\n",
       "                    \"Finland\",\n",
       "                    \"Fiji\",\n",
       "                    \"France\",\n",
       "                    \"Micronesia, Fed. Sts.\",\n",
       "                    \"Gabon\",\n",
       "                    \"United Kingdom\",\n",
       "                    \"Georgia\",\n",
       "                    \"Ghana\",\n",
       "                    \"Guinea\",\n",
       "                    \"Gambia, The\",\n",
       "                    \"Guinea-Bissau\",\n",
       "                    \"Equatorial Guinea\",\n",
       "                    \"Greece\",\n",
       "                    \"Grenada\",\n",
       "                    \"Guatemala\",\n",
       "                    \"Guyana\",\n",
       "                    \"Hong Kong SAR, China\",\n",
       "                    \"Honduras\",\n",
       "                    \"Croatia\",\n",
       "                    \"Haiti\",\n",
       "                    \"Hungary\",\n",
       "                    \"Indonesia\",\n",
       "                    \"India\",\n",
       "                    \"Ireland\",\n",
       "                    \"Iran, Islamic Rep.\",\n",
       "                    \"Iraq\",\n",
       "                    \"Iceland\",\n",
       "                    \"Israel\",\n",
       "                    \"Italy\",\n",
       "                    \"Jamaica\",\n",
       "                    \"Jordan\",\n",
       "                    \"Japan\",\n",
       "                    \"Kazakhstan\",\n",
       "                    \"Kenya\",\n",
       "                    \"Kyrgyz Republic\",\n",
       "                    \"Cambodia\",\n",
       "                    \"Kiribati\",\n",
       "                    \"St. Kitts and Nevis\",\n",
       "                    \"Korea, Rep.\",\n",
       "                    \"Kuwait\",\n",
       "                    \"Lao PDR\",\n",
       "                    \"Lebanon\",\n",
       "                    \"Liberia\",\n",
       "                    \"Libya\",\n",
       "                    \"St. Lucia\",\n",
       "                    \"Liechtenstein\",\n",
       "                    \"Sri Lanka\",\n",
       "                    \"Lesotho\",\n",
       "                    \"Lithuania\",\n",
       "                    \"Luxembourg\",\n",
       "                    \"Latvia\",\n",
       "                    \"Morocco\",\n",
       "                    \"Moldova\",\n",
       "                    \"Madagascar\",\n",
       "                    \"Maldives\",\n",
       "                    \"Mexico\",\n",
       "                    \"Marshall Islands\",\n",
       "                    \"North Macedonia\",\n",
       "                    \"Mali\",\n",
       "                    \"Malta\",\n",
       "                    \"Myanmar\",\n",
       "                    \"Montenegro\",\n",
       "                    \"Mongolia\",\n",
       "                    \"Mozambique\",\n",
       "                    \"Mauritania\",\n",
       "                    \"Mauritius\",\n",
       "                    \"Malawi\",\n",
       "                    \"Malaysia\",\n",
       "                    \"North America\",\n",
       "                    \"Namibia\",\n",
       "                    \"Niger\",\n",
       "                    \"Nigeria\",\n",
       "                    \"Nicaragua\",\n",
       "                    \"Netherlands\",\n",
       "                    \"Norway\",\n",
       "                    \"Nepal\",\n",
       "                    \"New Zealand\",\n",
       "                    \"Oman\",\n",
       "                    \"Pakistan\",\n",
       "                    \"Panama\",\n",
       "                    \"Peru\",\n",
       "                    \"Philippines\",\n",
       "                    \"Palau\",\n",
       "                    \"Papua New Guinea\",\n",
       "                    \"Poland\",\n",
       "                    \"Puerto Rico\",\n",
       "                    \"Portugal\",\n",
       "                    \"Paraguay\",\n",
       "                    \"West Bank and Gaza\",\n",
       "                    \"Qatar\",\n",
       "                    \"Romania\",\n",
       "                    \"Russian Federation\",\n",
       "                    \"Rwanda\",\n",
       "                    \"Saudi Arabia\",\n",
       "                    \"Sudan\",\n",
       "                    \"Senegal\",\n",
       "                    \"Singapore\",\n",
       "                    \"Solomon Islands\",\n",
       "                    \"Sierra Leone\",\n",
       "                    \"El Salvador\",\n",
       "                    \"San Marino\",\n",
       "                    \"Somalia\",\n",
       "                    \"Serbia\",\n",
       "                    \"South Sudan\",\n",
       "                    \"Sao Tome and Principe\",\n",
       "                    \"Suriname\",\n",
       "                    \"Slovak Republic\",\n",
       "                    \"Slovenia\",\n",
       "                    \"Sweden\",\n",
       "                    \"Eswatini\",\n",
       "                    \"Seychelles\",\n",
       "                    \"Syrian Arab Republic\",\n",
       "                    \"Chad\",\n",
       "                    \"Togo\",\n",
       "                    \"Thailand\",\n",
       "                    \"Tajikistan\",\n",
       "                    \"Timor-Leste\",\n",
       "                    \"Tonga\",\n",
       "                    \"South Asia (IDA & IBRD)\",\n",
       "                    \"Trinidad and Tobago\",\n",
       "                    \"Tunisia\",\n",
       "                    \"Turkey\",\n",
       "                    \"Tanzania\",\n",
       "                    \"Uganda\",\n",
       "                    \"Ukraine\",\n",
       "                    \"Uruguay\",\n",
       "                    \"United States\",\n",
       "                    \"Uzbekistan\",\n",
       "                    \"St. Vincent and the Grenadines\",\n",
       "                    \"Venezuela, RB\",\n",
       "                    \"Vietnam\",\n",
       "                    \"Vanuatu\",\n",
       "                    \"Samoa\",\n",
       "                    \"Kosovo\",\n",
       "                    \"Yemen, Rep.\",\n",
       "                    \"South Africa\",\n",
       "                    \"Zambia\",\n",
       "                    \"Zimbabwe\"\n",
       "                ]\n",
       "            }\n",
       "        ],\n",
       "        \"yAxis\": [\n",
       "            {\n",
       "                \"show\": true,\n",
       "                \"scale\": false,\n",
       "                \"nameLocation\": \"end\",\n",
       "                \"nameGap\": 15,\n",
       "                \"gridIndex\": 0,\n",
       "                \"inverse\": false,\n",
       "                \"offset\": 0,\n",
       "                \"splitNumber\": 5,\n",
       "                \"minInterval\": 0,\n",
       "                \"splitLine\": {\n",
       "                    \"show\": false,\n",
       "                    \"lineStyle\": {\n",
       "                        \"width\": 1,\n",
       "                        \"opacity\": 1,\n",
       "                        \"curveness\": 0,\n",
       "                        \"type\": \"solid\"\n",
       "                    }\n",
       "                }\n",
       "            }\n",
       "        ]\n",
       "    },\n",
       "    \"options\": [\n",
       "        {\n",
       "            \"legend\": [\n",
       "                {\n",
       "                    \"data\": [\n",
       "                        \"2018\",\n",
       "                        \"2019\"\n",
       "                    ],\n",
       "                    \"selected\": {\n",
       "                        \"2018\": true,\n",
       "                        \"2019\": true\n",
       "                    },\n",
       "                    \"show\": true\n",
       "                }\n",
       "            ],\n",
       "            \"series\": [\n",
       "                {\n",
       "                    \"data\": null\n",
       "                },\n",
       "                {\n",
       "                    \"data\": null\n",
       "                }\n",
       "            ],\n",
       "            \"xAxis\": [\n",
       "                {\n",
       "                    \"show\": true,\n",
       "                    \"scale\": false,\n",
       "                    \"nameLocation\": \"end\",\n",
       "                    \"nameGap\": 15,\n",
       "                    \"gridIndex\": 0,\n",
       "                    \"inverse\": false,\n",
       "                    \"offset\": 0,\n",
       "                    \"splitNumber\": 5,\n",
       "                    \"minInterval\": 0,\n",
       "                    \"splitLine\": {\n",
       "                        \"show\": false,\n",
       "                        \"lineStyle\": {\n",
       "                            \"width\": 1,\n",
       "                            \"opacity\": 1,\n",
       "                            \"curveness\": 0,\n",
       "                            \"type\": \"solid\"\n",
       "                        }\n",
       "                    },\n",
       "                    \"data\": [\n",
       "                        \"Afghanistan\",\n",
       "                        \"Angola\",\n",
       "                        \"Albania\",\n",
       "                        \"United Arab Emirates\",\n",
       "                        \"Argentina\",\n",
       "                        \"Armenia\",\n",
       "                        \"Antigua and Barbuda\",\n",
       "                        \"Australia\",\n",
       "                        \"Austria\",\n",
       "                        \"Azerbaijan\",\n",
       "                        \"Burundi\",\n",
       "                        \"Belgium\",\n",
       "                        \"Benin\",\n",
       "                        \"Burkina Faso\",\n",
       "                        \"Bangladesh\",\n",
       "                        \"Bulgaria\",\n",
       "                        \"Bahrain\",\n",
       "                        \"Bahamas, The\",\n",
       "                        \"Bosnia and Herzegovina\",\n",
       "                        \"Belarus\",\n",
       "                        \"Belize\",\n",
       "                        \"Bolivia\",\n",
       "                        \"Brazil\",\n",
       "                        \"Barbados\",\n",
       "                        \"Brunei Darussalam\",\n",
       "                        \"Bhutan\",\n",
       "                        \"Botswana\",\n",
       "                        \"Central African Republic\",\n",
       "                        \"Canada\",\n",
       "                        \"Switzerland\",\n",
       "                        \"Chile\",\n",
       "                        \"China\",\n",
       "                        \"Cote d'Ivoire\",\n",
       "                        \"Cameroon\",\n",
       "                        \"Congo, Dem. Rep.\",\n",
       "                        \"Congo, Rep.\",\n",
       "                        \"Colombia\",\n",
       "                        \"Comoros\",\n",
       "                        \"Cabo Verde\",\n",
       "                        \"Costa Rica\",\n",
       "                        \"Cyprus\",\n",
       "                        \"Czech Republic\",\n",
       "                        \"Germany\",\n",
       "                        \"Djibouti\",\n",
       "                        \"Dominica\",\n",
       "                        \"Denmark\",\n",
       "                        \"Dominican Republic\",\n",
       "                        \"Algeria\",\n",
       "                        \"East Asia & Pacific (excluding high income)\",\n",
       "                        \"Europe & Central Asia (excluding high income)\",\n",
       "                        \"Europe & Central Asia\",\n",
       "                        \"Ecuador\",\n",
       "                        \"Egypt, Arab Rep.\",\n",
       "                        \"Eritrea\",\n",
       "                        \"Spain\",\n",
       "                        \"Estonia\",\n",
       "                        \"Ethiopia\",\n",
       "                        \"Finland\",\n",
       "                        \"Fiji\",\n",
       "                        \"France\",\n",
       "                        \"Micronesia, Fed. Sts.\",\n",
       "                        \"Gabon\",\n",
       "                        \"United Kingdom\",\n",
       "                        \"Georgia\",\n",
       "                        \"Ghana\",\n",
       "                        \"Guinea\",\n",
       "                        \"Gambia, The\",\n",
       "                        \"Guinea-Bissau\",\n",
       "                        \"Equatorial Guinea\",\n",
       "                        \"Greece\",\n",
       "                        \"Grenada\",\n",
       "                        \"Guatemala\",\n",
       "                        \"Guyana\",\n",
       "                        \"Hong Kong SAR, China\",\n",
       "                        \"Honduras\",\n",
       "                        \"Croatia\",\n",
       "                        \"Haiti\",\n",
       "                        \"Hungary\",\n",
       "                        \"Indonesia\",\n",
       "                        \"India\",\n",
       "                        \"Ireland\",\n",
       "                        \"Iran, Islamic Rep.\",\n",
       "                        \"Iraq\",\n",
       "                        \"Iceland\",\n",
       "                        \"Israel\",\n",
       "                        \"Italy\",\n",
       "                        \"Jamaica\",\n",
       "                        \"Jordan\",\n",
       "                        \"Japan\",\n",
       "                        \"Kazakhstan\",\n",
       "                        \"Kenya\",\n",
       "                        \"Kyrgyz Republic\",\n",
       "                        \"Cambodia\",\n",
       "                        \"Kiribati\",\n",
       "                        \"St. Kitts and Nevis\",\n",
       "                        \"Korea, Rep.\",\n",
       "                        \"Kuwait\",\n",
       "                        \"Lao PDR\",\n",
       "                        \"Lebanon\",\n",
       "                        \"Liberia\",\n",
       "                        \"Libya\",\n",
       "                        \"St. Lucia\",\n",
       "                        \"Liechtenstein\",\n",
       "                        \"Sri Lanka\",\n",
       "                        \"Lesotho\",\n",
       "                        \"Lithuania\",\n",
       "                        \"Luxembourg\",\n",
       "                        \"Latvia\",\n",
       "                        \"Morocco\",\n",
       "                        \"Moldova\",\n",
       "                        \"Madagascar\",\n",
       "                        \"Maldives\",\n",
       "                        \"Mexico\",\n",
       "                        \"Marshall Islands\",\n",
       "                        \"North Macedonia\",\n",
       "                        \"Mali\",\n",
       "                        \"Malta\",\n",
       "                        \"Myanmar\",\n",
       "                        \"Montenegro\",\n",
       "                        \"Mongolia\",\n",
       "                        \"Mozambique\",\n",
       "                        \"Mauritania\",\n",
       "                        \"Mauritius\",\n",
       "                        \"Malawi\",\n",
       "                        \"Malaysia\",\n",
       "                        \"North America\",\n",
       "                        \"Namibia\",\n",
       "                        \"Niger\",\n",
       "                        \"Nigeria\",\n",
       "                        \"Nicaragua\",\n",
       "                        \"Netherlands\",\n",
       "                        \"Norway\",\n",
       "                        \"Nepal\",\n",
       "                        \"New Zealand\",\n",
       "                        \"Oman\",\n",
       "                        \"Pakistan\",\n",
       "                        \"Panama\",\n",
       "                        \"Peru\",\n",
       "                        \"Philippines\",\n",
       "                        \"Palau\",\n",
       "                        \"Papua New Guinea\",\n",
       "                        \"Poland\",\n",
       "                        \"Puerto Rico\",\n",
       "                        \"Portugal\",\n",
       "                        \"Paraguay\",\n",
       "                        \"West Bank and Gaza\",\n",
       "                        \"Qatar\",\n",
       "                        \"Romania\",\n",
       "                        \"Russian Federation\",\n",
       "                        \"Rwanda\",\n",
       "                        \"Saudi Arabia\",\n",
       "                        \"Sudan\",\n",
       "                        \"Senegal\",\n",
       "                        \"Singapore\",\n",
       "                        \"Solomon Islands\",\n",
       "                        \"Sierra Leone\",\n",
       "                        \"El Salvador\",\n",
       "                        \"San Marino\",\n",
       "                        \"Somalia\",\n",
       "                        \"Serbia\",\n",
       "                        \"South Sudan\",\n",
       "                        \"Sao Tome and Principe\",\n",
       "                        \"Suriname\",\n",
       "                        \"Slovak Republic\",\n",
       "                        \"Slovenia\",\n",
       "                        \"Sweden\",\n",
       "                        \"Eswatini\",\n",
       "                        \"Seychelles\",\n",
       "                        \"Syrian Arab Republic\",\n",
       "                        \"Chad\",\n",
       "                        \"Togo\",\n",
       "                        \"Thailand\",\n",
       "                        \"Tajikistan\",\n",
       "                        \"Timor-Leste\",\n",
       "                        \"Tonga\",\n",
       "                        \"South Asia (IDA & IBRD)\",\n",
       "                        \"Trinidad and Tobago\",\n",
       "                        \"Tunisia\",\n",
       "                        \"Turkey\",\n",
       "                        \"Tanzania\",\n",
       "                        \"Uganda\",\n",
       "                        \"Ukraine\",\n",
       "                        \"Uruguay\",\n",
       "                        \"United States\",\n",
       "                        \"Uzbekistan\",\n",
       "                        \"St. Vincent and the Grenadines\",\n",
       "                        \"Venezuela, RB\",\n",
       "                        \"Vietnam\",\n",
       "                        \"Vanuatu\",\n",
       "                        \"Samoa\",\n",
       "                        \"Kosovo\",\n",
       "                        \"Yemen, Rep.\",\n",
       "                        \"South Africa\",\n",
       "                        \"Zambia\",\n",
       "                        \"Zimbabwe\"\n",
       "                    ]\n",
       "                }\n",
       "            ],\n",
       "            \"title\": [\n",
       "                {\n",
       "                    \"text\": \"\\u4f01\\u4e1a\\u4fe1\\u606f\\u62ab\\u9732\\u7a0b\\u5ea6\\u6307\\u6570\"\n",
       "                }\n",
       "            ],\n",
       "            \"tooltip\": {\n",
       "                \"show\": true,\n",
       "                \"trigger\": \"item\",\n",
       "                \"triggerOn\": \"mousemove|click\",\n",
       "                \"axisPointer\": {\n",
       "                    \"type\": \"line\"\n",
       "                },\n",
       "                \"textStyle\": {\n",
       "                    \"fontSize\": 14\n",
       "                },\n",
       "                \"borderWidth\": 0\n",
       "            },\n",
       "            \"color\": [\n",
       "                \"#c23531\",\n",
       "                \"#2f4554\",\n",
       "                \"#61a0a8\",\n",
       "                \"#d48265\",\n",
       "                \"#749f83\",\n",
       "                \"#ca8622\",\n",
       "                \"#bda29a\",\n",
       "                \"#6e7074\",\n",
       "                \"#546570\",\n",
       "                \"#c4ccd3\",\n",
       "                \"#f05b72\",\n",
       "                \"#ef5b9c\",\n",
       "                \"#f47920\",\n",
       "                \"#905a3d\",\n",
       "                \"#fab27b\",\n",
       "                \"#2a5caa\",\n",
       "                \"#444693\",\n",
       "                \"#726930\",\n",
       "                \"#b2d235\",\n",
       "                \"#6d8346\",\n",
       "                \"#ac6767\",\n",
       "                \"#1d953f\",\n",
       "                \"#6950a1\",\n",
       "                \"#918597\"\n",
       "            ]\n",
       "        },\n",
       "        {\n",
       "            \"legend\": [\n",
       "                {\n",
       "                    \"data\": [\n",
       "                        \"2018\",\n",
       "                        \"2019\"\n",
       "                    ],\n",
       "                    \"selected\": {\n",
       "                        \"2018\": true,\n",
       "                        \"2019\": true\n",
       "                    },\n",
       "                    \"show\": true\n",
       "                }\n",
       "            ],\n",
       "            \"series\": [\n",
       "                {\n",
       "                    \"data\": null\n",
       "                },\n",
       "                {\n",
       "                    \"data\": null\n",
       "                }\n",
       "            ],\n",
       "            \"xAxis\": [\n",
       "                {\n",
       "                    \"show\": true,\n",
       "                    \"scale\": false,\n",
       "                    \"nameLocation\": \"end\",\n",
       "                    \"nameGap\": 15,\n",
       "                    \"gridIndex\": 0,\n",
       "                    \"inverse\": false,\n",
       "                    \"offset\": 0,\n",
       "                    \"splitNumber\": 5,\n",
       "                    \"minInterval\": 0,\n",
       "                    \"splitLine\": {\n",
       "                        \"show\": false,\n",
       "                        \"lineStyle\": {\n",
       "                            \"width\": 1,\n",
       "                            \"opacity\": 1,\n",
       "                            \"curveness\": 0,\n",
       "                            \"type\": \"solid\"\n",
       "                        }\n",
       "                    },\n",
       "                    \"data\": [\n",
       "                        \"Afghanistan\",\n",
       "                        \"Angola\",\n",
       "                        \"Albania\",\n",
       "                        \"United Arab Emirates\",\n",
       "                        \"Argentina\",\n",
       "                        \"Armenia\",\n",
       "                        \"Antigua and Barbuda\",\n",
       "                        \"Australia\",\n",
       "                        \"Austria\",\n",
       "                        \"Azerbaijan\",\n",
       "                        \"Burundi\",\n",
       "                        \"Belgium\",\n",
       "                        \"Benin\",\n",
       "                        \"Burkina Faso\",\n",
       "                        \"Bangladesh\",\n",
       "                        \"Bulgaria\",\n",
       "                        \"Bahrain\",\n",
       "                        \"Bahamas, The\",\n",
       "                        \"Bosnia and Herzegovina\",\n",
       "                        \"Belarus\",\n",
       "                        \"Belize\",\n",
       "                        \"Bolivia\",\n",
       "                        \"Brazil\",\n",
       "                        \"Barbados\",\n",
       "                        \"Brunei Darussalam\",\n",
       "                        \"Bhutan\",\n",
       "                        \"Botswana\",\n",
       "                        \"Central African Republic\",\n",
       "                        \"Canada\",\n",
       "                        \"Switzerland\",\n",
       "                        \"Chile\",\n",
       "                        \"China\",\n",
       "                        \"Cote d'Ivoire\",\n",
       "                        \"Cameroon\",\n",
       "                        \"Congo, Dem. Rep.\",\n",
       "                        \"Congo, Rep.\",\n",
       "                        \"Colombia\",\n",
       "                        \"Comoros\",\n",
       "                        \"Cabo Verde\",\n",
       "                        \"Costa Rica\",\n",
       "                        \"Cyprus\",\n",
       "                        \"Czech Republic\",\n",
       "                        \"Germany\",\n",
       "                        \"Djibouti\",\n",
       "                        \"Dominica\",\n",
       "                        \"Denmark\",\n",
       "                        \"Dominican Republic\",\n",
       "                        \"Algeria\",\n",
       "                        \"East Asia & Pacific (excluding high income)\",\n",
       "                        \"Europe & Central Asia (excluding high income)\",\n",
       "                        \"Europe & Central Asia\",\n",
       "                        \"Ecuador\",\n",
       "                        \"Egypt, Arab Rep.\",\n",
       "                        \"Eritrea\",\n",
       "                        \"Spain\",\n",
       "                        \"Estonia\",\n",
       "                        \"Ethiopia\",\n",
       "                        \"Finland\",\n",
       "                        \"Fiji\",\n",
       "                        \"France\",\n",
       "                        \"Micronesia, Fed. Sts.\",\n",
       "                        \"Gabon\",\n",
       "                        \"United Kingdom\",\n",
       "                        \"Georgia\",\n",
       "                        \"Ghana\",\n",
       "                        \"Guinea\",\n",
       "                        \"Gambia, The\",\n",
       "                        \"Guinea-Bissau\",\n",
       "                        \"Equatorial Guinea\",\n",
       "                        \"Greece\",\n",
       "                        \"Grenada\",\n",
       "                        \"Guatemala\",\n",
       "                        \"Guyana\",\n",
       "                        \"Hong Kong SAR, China\",\n",
       "                        \"Honduras\",\n",
       "                        \"Croatia\",\n",
       "                        \"Haiti\",\n",
       "                        \"Hungary\",\n",
       "                        \"Indonesia\",\n",
       "                        \"India\",\n",
       "                        \"Ireland\",\n",
       "                        \"Iran, Islamic Rep.\",\n",
       "                        \"Iraq\",\n",
       "                        \"Iceland\",\n",
       "                        \"Israel\",\n",
       "                        \"Italy\",\n",
       "                        \"Jamaica\",\n",
       "                        \"Jordan\",\n",
       "                        \"Japan\",\n",
       "                        \"Kazakhstan\",\n",
       "                        \"Kenya\",\n",
       "                        \"Kyrgyz Republic\",\n",
       "                        \"Cambodia\",\n",
       "                        \"Kiribati\",\n",
       "                        \"St. Kitts and Nevis\",\n",
       "                        \"Korea, Rep.\",\n",
       "                        \"Kuwait\",\n",
       "                        \"Lao PDR\",\n",
       "                        \"Lebanon\",\n",
       "                        \"Liberia\",\n",
       "                        \"Libya\",\n",
       "                        \"St. Lucia\",\n",
       "                        \"Liechtenstein\",\n",
       "                        \"Sri Lanka\",\n",
       "                        \"Lesotho\",\n",
       "                        \"Lithuania\",\n",
       "                        \"Luxembourg\",\n",
       "                        \"Latvia\",\n",
       "                        \"Morocco\",\n",
       "                        \"Moldova\",\n",
       "                        \"Madagascar\",\n",
       "                        \"Maldives\",\n",
       "                        \"Mexico\",\n",
       "                        \"Marshall Islands\",\n",
       "                        \"North Macedonia\",\n",
       "                        \"Mali\",\n",
       "                        \"Malta\",\n",
       "                        \"Myanmar\",\n",
       "                        \"Montenegro\",\n",
       "                        \"Mongolia\",\n",
       "                        \"Mozambique\",\n",
       "                        \"Mauritania\",\n",
       "                        \"Mauritius\",\n",
       "                        \"Malawi\",\n",
       "                        \"Malaysia\",\n",
       "                        \"North America\",\n",
       "                        \"Namibia\",\n",
       "                        \"Niger\",\n",
       "                        \"Nigeria\",\n",
       "                        \"Nicaragua\",\n",
       "                        \"Netherlands\",\n",
       "                        \"Norway\",\n",
       "                        \"Nepal\",\n",
       "                        \"New Zealand\",\n",
       "                        \"Oman\",\n",
       "                        \"Pakistan\",\n",
       "                        \"Panama\",\n",
       "                        \"Peru\",\n",
       "                        \"Philippines\",\n",
       "                        \"Palau\",\n",
       "                        \"Papua New Guinea\",\n",
       "                        \"Poland\",\n",
       "                        \"Puerto Rico\",\n",
       "                        \"Portugal\",\n",
       "                        \"Paraguay\",\n",
       "                        \"West Bank and Gaza\",\n",
       "                        \"Qatar\",\n",
       "                        \"Romania\",\n",
       "                        \"Russian Federation\",\n",
       "                        \"Rwanda\",\n",
       "                        \"Saudi Arabia\",\n",
       "                        \"Sudan\",\n",
       "                        \"Senegal\",\n",
       "                        \"Singapore\",\n",
       "                        \"Solomon Islands\",\n",
       "                        \"Sierra Leone\",\n",
       "                        \"El Salvador\",\n",
       "                        \"San Marino\",\n",
       "                        \"Somalia\",\n",
       "                        \"Serbia\",\n",
       "                        \"South Sudan\",\n",
       "                        \"Sao Tome and Principe\",\n",
       "                        \"Suriname\",\n",
       "                        \"Slovak Republic\",\n",
       "                        \"Slovenia\",\n",
       "                        \"Sweden\",\n",
       "                        \"Eswatini\",\n",
       "                        \"Seychelles\",\n",
       "                        \"Syrian Arab Republic\",\n",
       "                        \"Chad\",\n",
       "                        \"Togo\",\n",
       "                        \"Thailand\",\n",
       "                        \"Tajikistan\",\n",
       "                        \"Timor-Leste\",\n",
       "                        \"Tonga\",\n",
       "                        \"South Asia (IDA & IBRD)\",\n",
       "                        \"Trinidad and Tobago\",\n",
       "                        \"Tunisia\",\n",
       "                        \"Turkey\",\n",
       "                        \"Tanzania\",\n",
       "                        \"Uganda\",\n",
       "                        \"Ukraine\",\n",
       "                        \"Uruguay\",\n",
       "                        \"United States\",\n",
       "                        \"Uzbekistan\",\n",
       "                        \"St. Vincent and the Grenadines\",\n",
       "                        \"Venezuela, RB\",\n",
       "                        \"Vietnam\",\n",
       "                        \"Vanuatu\",\n",
       "                        \"Samoa\",\n",
       "                        \"Kosovo\",\n",
       "                        \"Yemen, Rep.\",\n",
       "                        \"South Africa\",\n",
       "                        \"Zambia\",\n",
       "                        \"Zimbabwe\"\n",
       "                    ]\n",
       "                }\n",
       "            ],\n",
       "            \"title\": [\n",
       "                {\n",
       "                    \"text\": \"\\u4f01\\u4e1a\\u4fe1\\u606f\\u62ab\\u9732\\u7a0b\\u5ea6\\u6307\\u6570\"\n",
       "                }\n",
       "            ],\n",
       "            \"tooltip\": {\n",
       "                \"show\": true,\n",
       "                \"trigger\": \"item\",\n",
       "                \"triggerOn\": \"mousemove|click\",\n",
       "                \"axisPointer\": {\n",
       "                    \"type\": \"line\"\n",
       "                },\n",
       "                \"textStyle\": {\n",
       "                    \"fontSize\": 14\n",
       "                },\n",
       "                \"borderWidth\": 0\n",
       "            },\n",
       "            \"color\": [\n",
       "                \"#c23531\",\n",
       "                \"#2f4554\",\n",
       "                \"#61a0a8\",\n",
       "                \"#d48265\",\n",
       "                \"#749f83\",\n",
       "                \"#ca8622\",\n",
       "                \"#bda29a\",\n",
       "                \"#6e7074\",\n",
       "                \"#546570\",\n",
       "                \"#c4ccd3\",\n",
       "                \"#f05b72\",\n",
       "                \"#ef5b9c\",\n",
       "                \"#f47920\",\n",
       "                \"#905a3d\",\n",
       "                \"#fab27b\",\n",
       "                \"#2a5caa\",\n",
       "                \"#444693\",\n",
       "                \"#726930\",\n",
       "                \"#b2d235\",\n",
       "                \"#6d8346\",\n",
       "                \"#ac6767\",\n",
       "                \"#1d953f\",\n",
       "                \"#6950a1\",\n",
       "                \"#918597\"\n",
       "            ]\n",
       "        }\n",
       "    ]\n",
       "};\n",
       "                chart_6294011669b8482b82315598a043bb13.setOption(option_6294011669b8482b82315598a043bb13);\n",
       "        });\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x1b2de92f048>"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 时间轮播图\n",
    "list1 = df.ratef\n",
    "list2 = df.rates\n",
    "\n",
    "from pyecharts.faker import Faker\n",
    "from pyecharts import options as opts\n",
    "from pyecharts.charts import Bar, Page, Pie, Timeline\n",
    "\n",
    "\n",
    "def timeline_bar() -> Timeline:\n",
    "    x = list(df[\"country\"])\n",
    "    tl = Timeline()\n",
    "    for i in range(2018, 2020):\n",
    "        bar = (\n",
    "            Bar()\n",
    "            .add_xaxis(x)\n",
    "            .add_yaxis(\"2018\", list1)\n",
    "            .add_yaxis(\"2019\", list2)\n",
    "            .set_global_opts(title_opts=opts.TitleOpts(\"企业信息披露程度指数\".format(i)))\n",
    "        )\n",
    "        tl.add(bar, \"{}年\".format(i))\n",
    "    return tl\n",
    "\n",
    "企业信息披露程度指数 = timeline_bar()\n",
    "企业信息披露程度指数.render_notebook()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://assets.pyecharts.org/assets/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "        <div id=\"8102ed05fe3c47778242eb83f61fbfe1\" style=\"width:900px; height:500px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts'], function(echarts) {\n",
       "                var chart_8102ed05fe3c47778242eb83f61fbfe1 = echarts.init(\n",
       "                    document.getElementById('8102ed05fe3c47778242eb83f61fbfe1'), 'white', {renderer: 'canvas'});\n",
       "                var option_8102ed05fe3c47778242eb83f61fbfe1 = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"themeRiver\",\n",
       "            \"name\": [\n",
       "                \"DQ\",\n",
       "                \"TY\",\n",
       "                \"SS\",\n",
       "                \"QG\",\n",
       "                \"SY\",\n",
       "                \"DD\"\n",
       "            ],\n",
       "            \"data\": [\n",
       "                [\n",
       "                    \"Afghanistan\",\n",
       "                    8.0\n",
       "                ],\n",
       "                [\n",
       "                    \"2019\",\n",
       "                    4.0,\n",
       "                    \"DQ\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2019\",\n",
       "                    9.0,\n",
       "                    \"TY\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2019\",\n",
       "                    10.0,\n",
       "                    \"TY\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2019\",\n",
       "                    7.0,\n",
       "                    \"TY\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2019\",\n",
       "                    7.0,\n",
       "                    \"SS\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2019\",\n",
       "                    4.0,\n",
       "                    \"QG\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2019\",\n",
       "                    8.0,\n",
       "                    \"SY\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2019\",\n",
       "                    5.0,\n",
       "                    \"DD\"\n",
       "                ],\n",
       "                [\n",
       "                    \"2019\",\n",
       "                    10.0,\n",
       "                    \"DD\"\n",
       "                ]\n",
       "            ],\n",
       "            \"label\": {\n",
       "                \"show\": true,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"DQ\",\n",
       "                \"TY\",\n",
       "                \"SS\",\n",
       "                \"QG\",\n",
       "                \"SY\",\n",
       "                \"DD\"\n",
       "            ],\n",
       "            \"selected\": {\n",
       "                \"DQ\": true,\n",
       "                \"TY\": true,\n",
       "                \"SS\": true,\n",
       "                \"QG\": true,\n",
       "                \"SY\": true,\n",
       "                \"DD\": true\n",
       "            },\n",
       "            \"show\": true\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0\n",
       "    },\n",
       "    \"singleAxis\": {\n",
       "        \"bottom\": \"10%\",\n",
       "        \"type\": \"time\"\n",
       "    },\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"ThemeRiver-\\u57fa\\u672c\\u793a\\u4f8b\"\n",
       "        }\n",
       "    ]\n",
       "};\n",
       "                chart_8102ed05fe3c47778242eb83f61fbfe1.setOption(option_8102ed05fe3c47778242eb83f61fbfe1);\n",
       "        });\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x1b2de92d518>"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 主题河流图\n",
    "\n",
    "from pyecharts import options as opts\n",
    "from pyecharts.charts import Page, ThemeRiver\n",
    "\n",
    "\n",
    "def themeriver_example() -> ThemeRiver:\n",
    "    data = [\n",
    "        ['Afghanistan', 8.0],\n",
    "  ['2019', 4.0, \"DQ\"],\n",
    "  ['2019', 9.0,\"TY\"],\n",
    "  ['2019', 10.0,\"TY\"],\n",
    "  ['2019', 7.0,\"TY\"],\n",
    "  ['2019', 7.0,\"SS\"],\n",
    "  ['2019', 4.0, \"QG\"],\n",
    "  ['2019', 8.0, \"SY\"],\n",
    "  ['2019', 5.0,\"DD\"],\n",
    "  ['2019', 10.0,\"DD\"],\n",
    "        \n",
    "    ]\n",
    "    c = (\n",
    "        ThemeRiver()\n",
    "        .add(\n",
    "            [\"DQ\", \"TY\", \"SS\", \"QG\", \"SY\", \"DD\"],\n",
    "            data,\n",
    "            singleaxis_opts=opts.SingleAxisOpts(type_=\"time\", pos_bottom=\"10%\"),\n",
    "        )\n",
    "        .set_global_opts(title_opts=opts.TitleOpts(title=\"ThemeRiver-基本示例\"))\n",
    "    )\n",
    "    return c\n",
    "\n",
    "\n",
    "# [\"2015/11/08\", 10, \"DQ\"]\n",
    "\n",
    "企业信息披露程度指数 = themeriver_example()\n",
    "企业信息披露程度指数.render_notebook() "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 下面是地图空间可视化界面介绍"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>country</th>\n",
       "      <th>ratenin</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Afghanistan</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Angola</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>Albania</td>\n",
       "      <td>9.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>United Arab Emirates</td>\n",
       "      <td>10.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>Argentina</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>Armenia</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>Antigua and Barbuda</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>Australia</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>Austria</td>\n",
       "      <td>5.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>Azerbaijan</td>\n",
       "      <td>10.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>Burundi</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>Belgium</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>Benin</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>Burkina Faso</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>Bangladesh</td>\n",
       "      <td>6.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>Bulgaria</td>\n",
       "      <td>10.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>Bahrain</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>Bahamas, The</td>\n",
       "      <td>3.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>Bosnia and Herzegovina</td>\n",
       "      <td>3.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>Belarus</td>\n",
       "      <td>6.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>Belize</td>\n",
       "      <td>3.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>Bolivia</td>\n",
       "      <td>1.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>Brazil</td>\n",
       "      <td>5.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>Barbados</td>\n",
       "      <td>2.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>Brunei Darussalam</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>Bhutan</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>Botswana</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>Central African Republic</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>Canada</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>Switzerland</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>165</th>\n",
       "      <td>Sweden</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>166</th>\n",
       "      <td>Eswatini</td>\n",
       "      <td>2.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>167</th>\n",
       "      <td>Seychelles</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>168</th>\n",
       "      <td>Syrian Arab Republic</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>169</th>\n",
       "      <td>Chad</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>170</th>\n",
       "      <td>Togo</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>171</th>\n",
       "      <td>Thailand</td>\n",
       "      <td>10.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>172</th>\n",
       "      <td>Tajikistan</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>173</th>\n",
       "      <td>Timor-Leste</td>\n",
       "      <td>5.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>174</th>\n",
       "      <td>Tonga</td>\n",
       "      <td>3.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>175</th>\n",
       "      <td>South Asia (IDA &amp; IBRD)</td>\n",
       "      <td>5.75</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>176</th>\n",
       "      <td>Trinidad and Tobago</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>177</th>\n",
       "      <td>Tunisia</td>\n",
       "      <td>6.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>178</th>\n",
       "      <td>Turkey</td>\n",
       "      <td>9.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>179</th>\n",
       "      <td>Tanzania</td>\n",
       "      <td>2.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>180</th>\n",
       "      <td>Uganda</td>\n",
       "      <td>3.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>181</th>\n",
       "      <td>Ukraine</td>\n",
       "      <td>9.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>182</th>\n",
       "      <td>Uruguay</td>\n",
       "      <td>3.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>183</th>\n",
       "      <td>United States</td>\n",
       "      <td>7.40</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>184</th>\n",
       "      <td>Uzbekistan</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>185</th>\n",
       "      <td>St. Vincent and the Grenadines</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>186</th>\n",
       "      <td>Venezuela, RB</td>\n",
       "      <td>3.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>187</th>\n",
       "      <td>Vietnam</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>188</th>\n",
       "      <td>Vanuatu</td>\n",
       "      <td>5.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>189</th>\n",
       "      <td>Samoa</td>\n",
       "      <td>5.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>190</th>\n",
       "      <td>Kosovo</td>\n",
       "      <td>9.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>191</th>\n",
       "      <td>Yemen, Rep.</td>\n",
       "      <td>6.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>192</th>\n",
       "      <td>South Africa</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>193</th>\n",
       "      <td>Zambia</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>194</th>\n",
       "      <td>Zimbabwe</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>195 rows × 2 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                            country  ratenin\n",
       "0                       Afghanistan     8.00\n",
       "1                            Angola     4.00\n",
       "2                           Albania     9.00\n",
       "3              United Arab Emirates    10.00\n",
       "4                         Argentina     7.00\n",
       "5                           Armenia     7.00\n",
       "6               Antigua and Barbuda     4.00\n",
       "7                         Australia     8.00\n",
       "8                           Austria     5.00\n",
       "9                        Azerbaijan    10.00\n",
       "10                          Burundi     8.00\n",
       "11                          Belgium     8.00\n",
       "12                            Benin     7.00\n",
       "13                     Burkina Faso     7.00\n",
       "14                       Bangladesh     6.00\n",
       "15                         Bulgaria    10.00\n",
       "16                          Bahrain     8.00\n",
       "17                     Bahamas, The     3.00\n",
       "18           Bosnia and Herzegovina     3.00\n",
       "19                          Belarus     6.00\n",
       "20                           Belize     3.00\n",
       "21                          Bolivia     1.00\n",
       "22                           Brazil     5.00\n",
       "23                         Barbados     2.00\n",
       "24                Brunei Darussalam     4.00\n",
       "25                           Bhutan     4.00\n",
       "26                         Botswana     7.00\n",
       "27         Central African Republic     7.00\n",
       "28                           Canada     8.00\n",
       "29                      Switzerland     0.00\n",
       "..                              ...      ...\n",
       "165                          Sweden     8.00\n",
       "166                        Eswatini     2.00\n",
       "167                      Seychelles     4.00\n",
       "168            Syrian Arab Republic     7.00\n",
       "169                            Chad     7.00\n",
       "170                            Togo     7.00\n",
       "171                        Thailand    10.00\n",
       "172                      Tajikistan     8.00\n",
       "173                     Timor-Leste     5.00\n",
       "174                           Tonga     3.00\n",
       "175         South Asia (IDA & IBRD)     5.75\n",
       "176             Trinidad and Tobago     4.00\n",
       "177                         Tunisia     6.00\n",
       "178                          Turkey     9.00\n",
       "179                        Tanzania     2.00\n",
       "180                          Uganda     3.00\n",
       "181                         Ukraine     9.00\n",
       "182                         Uruguay     3.00\n",
       "183                   United States     7.40\n",
       "184                      Uzbekistan     8.00\n",
       "185  St. Vincent and the Grenadines     4.00\n",
       "186                   Venezuela, RB     3.00\n",
       "187                         Vietnam     7.00\n",
       "188                         Vanuatu     5.00\n",
       "189                           Samoa     5.00\n",
       "190                          Kosovo     9.00\n",
       "191                     Yemen, Rep.     6.00\n",
       "192                    South Africa     8.00\n",
       "193                          Zambia     4.00\n",
       "194                        Zimbabwe     8.00\n",
       "\n",
       "[195 rows x 2 columns]"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import csv\n",
    "import pandas as pd\n",
    "df = pd.read_csv(\"Business extent of disclosure indexs19.csv\") # 文件要放在同一个目录下面才可以运行\n",
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[('Afghanistan', 8.0), ('Angola', 4.0), ('Albania', 9.0), ('United Arab Emirates', 10.0), ('Argentina', 7.0), ('Armenia', 7.0), ('Antigua and Barbuda', 4.0), ('Australia', 8.0), ('Austria', 5.0), ('Azerbaijan', 10.0), ('Burundi', 8.0), ('Belgium', 8.0), ('Benin', 7.0), ('Burkina Faso', 7.0), ('Bangladesh', 6.0), ('Bulgaria', 10.0), ('Bahrain', 8.0), ('Bahamas, The', 3.0), ('Bosnia and Herzegovina', 3.0), ('Belarus', 6.0), ('Belize', 3.0), ('Bolivia', 1.0), ('Brazil', 5.0), ('Barbados', 2.0), ('Brunei Darussalam', 4.0), ('Bhutan', 4.0), ('Botswana', 7.0), ('Central African Republic', 7.0), ('Canada', 8.0), ('Switzerland', 0.0), ('Chile', 8.0), ('China', 10.0), (\"Cote d'Ivoire\", 7.0), ('Cameroon', 7.0), ('Congo, Dem. Rep.', 7.0), ('Congo, Rep.', 7.0), ('Colombia', 9.0), ('Comoros', 7.0), ('Cabo Verde', 1.0), ('Costa Rica', 5.0), ('Cyprus', 9.0), ('Czech Republic', 2.0), ('Germany', 5.0), ('Djibouti', 8.0), ('Dominica', 4.0), ('Denmark', 7.0), ('Dominican Republic', 5.0), ('Algeria', 4.0), ('East Asia & Pacific (excluding high income)', 5.7), ('Europe & Central Asia (excluding high income)', 7.8), ('Europe & Central Asia', 6.66), ('Ecuador', 2.0), ('Egypt, Arab Rep.', 8.0), ('Eritrea', 3.0), ('Spain', 7.0), ('Estonia', 8.0), ('Ethiopia', 3.0), ('Finland', 6.0), ('Fiji', 2.0), ('France', 8.0), ('Micronesia, Fed. Sts.', 0.0), ('Gabon', 7.0), ('United Kingdom', 10.0), ('Georgia', 9.0), ('Ghana', 7.0), ('Guinea', 7.0), ('Gambia, The', 2.0), ('Guinea-Bissau', 7.0), ('Equatorial Guinea', 7.0), ('Greece', 9.0), ('Grenada', 4.0), ('Guatemala', 3.0), ('Guyana', 5.0), ('Hong Kong SAR, China', 10.0), ('Honduras', 3.0), ('Croatia', 5.0), ('Haiti', 2.0), ('Hungary', 2.0), ('Indonesia', 10.0), ('India', 8.0), ('Ireland', 9.0), ('Iran, Islamic Rep.', 7.0), ('Iraq', 4.0), ('Iceland', 7.0), ('Israel', 7.0), ('Italy', 7.0), ('Jamaica', 4.0), ('Jordan', 4.0), ('Japan', 7.0), ('Kazakhstan', 9.0), ('Kenya', 10.0), ('Kyrgyz Republic', 7.0), ('Cambodia', 6.0), ('Kiribati', 6.0), ('St. Kitts and Nevis', 4.0), ('Korea, Rep.', 8.0), ('Kuwait', 5.0), ('Lao PDR', 6.0), ('Lebanon', 9.0), ('Liberia', 4.0), ('Libya', 4.0), ('St. Lucia', 4.0), ('Liechtenstein', 2.0), ('Sri Lanka', 8.0), ('Lesotho', 3.0), ('Lithuania', 7.0), ('Luxembourg', 6.0), ('Latvia', 5.0), ('Morocco', 9.0), ('Moldova', 7.0), ('Madagascar', 7.0), ('Maldives', 0.0), ('Mexico', 8.0), ('Marshall Islands', 2.0), ('North Macedonia', 10.0), ('Mali', 7.0), ('Malta', 3.0), ('Myanmar', 4.0), ('Montenegro', 5.0), ('Mongolia', 6.0), ('Mozambique', 5.0), ('Mauritania', 6.0), ('Mauritius', 7.0), ('Malawi', 4.0), ('Malaysia', 10.0), ('North America', 7.7), ('Namibia', 5.0), ('Niger', 7.0), ('Nigeria', 7.0), ('Nicaragua', 1.0), ('Netherlands', 4.0), ('Norway', 7.0), ('Nepal', 6.0), ('New Zealand', 10.0), ('Oman', 8.0), ('Pakistan', 6.0), ('Panama', 4.0), ('Peru', 9.0), ('Philippines', 9.0), ('Palau', 0.0), ('Papua New Guinea', 5.0), ('Poland', 7.0), ('Puerto Rico', 7.0), ('Portugal', 6.0), ('Paraguay', 6.0), ('West Bank and Gaza', 6.0), ('Qatar', 2.0), ('Romania', 9.0), ('Russian Federation', 6.0), ('Rwanda', 8.0), ('Saudi Arabia', 9.0), ('Sudan', 3.0), ('Senegal', 7.0), ('Singapore', 10.0), ('Solomon Islands', 3.0), ('Sierra Leone', 6.0), ('El Salvador', 3.0), ('San Marino', 3.0), ('Somalia', 0.0), ('Serbia', 6.0), ('South Sudan', 2.0), ('Sao Tome and Principe', 3.0), ('Suriname', 1.0), ('Slovak Republic', 3.0), ('Slovenia', 5.0), ('Sweden', 8.0), ('Eswatini', 2.0), ('Seychelles', 4.0), ('Syrian Arab Republic', 7.0), ('Chad', 7.0), ('Togo', 7.0), ('Thailand', 10.0), ('Tajikistan', 8.0), ('Timor-Leste', 5.0), ('Tonga', 3.0), ('South Asia (IDA & IBRD)', 5.75), ('Trinidad and Tobago', 4.0), ('Tunisia', 6.0), ('Turkey', 9.0), ('Tanzania', 2.0), ('Uganda', 3.0), ('Ukraine', 9.0), ('Uruguay', 3.0), ('United States', 7.4), ('Uzbekistan', 8.0), ('St. Vincent and the Grenadines', 4.0), ('Venezuela, RB', 3.0), ('Vietnam', 7.0), ('Vanuatu', 5.0), ('Samoa', 5.0), ('Kosovo', 9.0), ('Yemen, Rep.', 6.0), ('South Africa', 8.0), ('Zambia', 4.0), ('Zimbabwe', 8.0)]\n"
     ]
    }
   ],
   "source": [
    "企业信息披露程度指数 = list(zip(list(df.country),list(df.ratenin)))\n",
    "print(企业信息披露程度指数)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://assets.pyecharts.org/assets/echarts.min', 'world':'https://assets.pyecharts.org/assets/maps/world'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "        <div id=\"1bb7ef2fc2b0415e84a4d49881db9e50\" style=\"width:900px; height:500px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts', 'world'], function(echarts) {\n",
       "                var chart_1bb7ef2fc2b0415e84a4d49881db9e50 = echarts.init(\n",
       "                    document.getElementById('1bb7ef2fc2b0415e84a4d49881db9e50'), 'white', {renderer: 'canvas'});\n",
       "                var option_1bb7ef2fc2b0415e84a4d49881db9e50 = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"map\",\n",
       "            \"name\": \"\\u4f01\\u4e1a\\u4fe1\\u606f\\u62ab\\u9732\\u7a0b\\u5ea6\\u6307\\u6570\",\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"mapType\": \"world\",\n",
       "            \"data\": [\n",
       "                {\n",
       "                    \"name\": \"Afghanistan\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Angola\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Albania\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"United Arab Emirates\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Argentina\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Armenia\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Antigua and Barbuda\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Australia\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Austria\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Azerbaijan\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Burundi\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Belgium\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Benin\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Burkina Faso\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bangladesh\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bulgaria\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bahrain\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bahamas, The\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bosnia and Herzegovina\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Belarus\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Belize\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bolivia\",\n",
       "                    \"value\": 1.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Brazil\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Barbados\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Brunei Darussalam\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bhutan\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Botswana\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Central African Republic\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Canada\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Switzerland\",\n",
       "                    \"value\": 0.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Chile\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"China\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cote d'Ivoire\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cameroon\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Congo, Dem. Rep.\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Congo, Rep.\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Colombia\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Comoros\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cabo Verde\",\n",
       "                    \"value\": 1.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Costa Rica\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cyprus\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Czech Republic\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Germany\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Djibouti\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Dominica\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Denmark\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Dominican Republic\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Algeria\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"East Asia & Pacific (excluding high income)\",\n",
       "                    \"value\": 5.7\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Europe & Central Asia (excluding high income)\",\n",
       "                    \"value\": 7.8\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Europe & Central Asia\",\n",
       "                    \"value\": 6.66\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ecuador\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Egypt, Arab Rep.\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Eritrea\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Spain\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Estonia\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ethiopia\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Finland\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Fiji\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"France\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Micronesia, Fed. Sts.\",\n",
       "                    \"value\": 0.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Gabon\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"United Kingdom\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Georgia\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ghana\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guinea\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Gambia, The\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guinea-Bissau\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Equatorial Guinea\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Greece\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Grenada\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guatemala\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guyana\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Hong Kong SAR, China\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Honduras\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Croatia\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Haiti\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Hungary\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Indonesia\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"India\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ireland\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Iran, Islamic Rep.\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Iraq\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Iceland\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Israel\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Italy\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Jamaica\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Jordan\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Japan\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kazakhstan\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kenya\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kyrgyz Republic\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cambodia\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kiribati\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"St. Kitts and Nevis\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Korea, Rep.\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kuwait\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lao PDR\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lebanon\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Liberia\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Libya\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"St. Lucia\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Liechtenstein\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sri Lanka\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lesotho\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lithuania\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Luxembourg\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Latvia\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Morocco\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Moldova\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Madagascar\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Maldives\",\n",
       "                    \"value\": 0.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mexico\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Marshall Islands\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"North Macedonia\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mali\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Malta\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Myanmar\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Montenegro\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mongolia\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mozambique\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mauritania\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mauritius\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Malawi\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Malaysia\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"North America\",\n",
       "                    \"value\": 7.7\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Namibia\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Niger\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Nigeria\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Nicaragua\",\n",
       "                    \"value\": 1.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Netherlands\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Norway\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Nepal\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"New Zealand\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Oman\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Pakistan\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Panama\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Peru\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Philippines\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Palau\",\n",
       "                    \"value\": 0.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Papua New Guinea\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Poland\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Puerto Rico\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Portugal\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Paraguay\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"West Bank and Gaza\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Qatar\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Romania\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Russian Federation\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Rwanda\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Saudi Arabia\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sudan\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Senegal\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Singapore\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Solomon Islands\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sierra Leone\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"El Salvador\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"San Marino\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Somalia\",\n",
       "                    \"value\": 0.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Serbia\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"South Sudan\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sao Tome and Principe\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Suriname\",\n",
       "                    \"value\": 1.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Slovak Republic\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Slovenia\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sweden\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Eswatini\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Seychelles\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Syrian Arab Republic\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Chad\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Togo\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Thailand\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tajikistan\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Timor-Leste\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tonga\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"South Asia (IDA & IBRD)\",\n",
       "                    \"value\": 5.75\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Trinidad and Tobago\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tunisia\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Turkey\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tanzania\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Uganda\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ukraine\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Uruguay\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"United States\",\n",
       "                    \"value\": 7.4\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Uzbekistan\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"St. Vincent and the Grenadines\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Venezuela, RB\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Vietnam\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Vanuatu\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Samoa\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kosovo\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Yemen, Rep.\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"South Africa\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Zambia\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Zimbabwe\",\n",
       "                    \"value\": 8.0\n",
       "                }\n",
       "            ],\n",
       "            \"roam\": true,\n",
       "            \"zoom\": 1,\n",
       "            \"showLegendSymbol\": true,\n",
       "            \"emphasis\": {},\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\\u4f01\\u4e1a\\u4fe1\\u606f\\u62ab\\u9732\\u7a0b\\u5ea6\\u6307\\u6570\"\n",
       "            ],\n",
       "            \"selected\": {\n",
       "                \"\\u4f01\\u4e1a\\u4fe1\\u606f\\u62ab\\u9732\\u7a0b\\u5ea6\\u6307\\u6570\": true\n",
       "            },\n",
       "            \"show\": true\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0\n",
       "    },\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"2019\\u4f01\\u4e1a\\u4fe1\\u606f\\u62ab\\u9732\\u7a0b\\u5ea6\\u6307\\u6570\"\n",
       "        }\n",
       "    ],\n",
       "    \"visualMap\": {\n",
       "        \"show\": true,\n",
       "        \"type\": \"continuous\",\n",
       "        \"min\": 0,\n",
       "        \"max\": 100,\n",
       "        \"inRange\": {\n",
       "            \"color\": [\n",
       "                \"#50a3ba\",\n",
       "                \"#eac763\",\n",
       "                \"#d94e5d\"\n",
       "            ]\n",
       "        },\n",
       "        \"calculable\": true,\n",
       "        \"splitNumber\": 5,\n",
       "        \"orient\": \"vertical\",\n",
       "        \"showLabel\": true\n",
       "    }\n",
       "};\n",
       "                chart_1bb7ef2fc2b0415e84a4d49881db9e50.setOption(option_1bb7ef2fc2b0415e84a4d49881db9e50);\n",
       "        });\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x1b2de929c18>"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "from pyecharts.faker import Faker # 随机 Faker 要添加\n",
    "from pyecharts import options as opts\n",
    "from pyecharts.charts import Map # 地图要素要添加\n",
    "from pyecharts.globals import ChartType,SymbolType\n",
    "from pyecharts.charts import Geo # 地理位置要添加\n",
    "\n",
    "def map_world() -> Map:\n",
    "    c = (\n",
    "        Map()\n",
    "        .add(\"企业信息披露程度指数\", 企业信息披露程度指数 , \"world\") # 各国青少年识字率，上面已经是使用字典来将他们来进行合成了\n",
    "        .set_series_opts(label_opts=opts.LabelOpts(is_show=False))\n",
    "        .set_global_opts(\n",
    "            title_opts=opts.TitleOpts(title=\"2019企业信息披露程度指数\"),\n",
    "            visualmap_opts=opts.VisualMapOpts(max_=100),\n",
    "        )\n",
    "    )\n",
    "    return c\n",
    "\n",
    "企业信息披露程度指数 = map_world()\n",
    "企业信息披露程度指数.render_notebook() "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 发现1：忽略部分国家和地区的数据缺失，可以发现全球企业信息披露程度指数平均值在5以上，甚至对外公布工作较为良好的可以有10\n",
    "\n",
    "### 发现2：部分指数低于5的国家和地区大部分分布在非洲，预测原因有二\n",
    "- 历史原因：殖民的历史导致国家发展缓慢，并且国家先进知识人才储备不足，国民素质较低\n",
    "- 现实原因：国家发展缓慢，信息收集不全面，导致部分地区指数并没有进行收录导致视图显示有一定的缺漏\n",
    "\n",
    "### 发现3：不同国家和地区的指数显示了不同国家对待企业信息披露敏感程度的不同，也与国家的保护政策以及对外战略策略相关联"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>country</th>\n",
       "      <th>rateeig</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Afghanistan</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Angola</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>Albania</td>\n",
       "      <td>9.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>United Arab Emirates</td>\n",
       "      <td>10.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>Argentina</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>Armenia</td>\n",
       "      <td>6.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>Antigua and Barbuda</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>Australia</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>Austria</td>\n",
       "      <td>5.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>Azerbaijan</td>\n",
       "      <td>10.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>Burundi</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>Belgium</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>Benin</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>Burkina Faso</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>Bangladesh</td>\n",
       "      <td>6.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>Bulgaria</td>\n",
       "      <td>10.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>Bahrain</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>Bahamas, The</td>\n",
       "      <td>2.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>Bosnia and Herzegovina</td>\n",
       "      <td>3.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>Belarus</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>Belize</td>\n",
       "      <td>3.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>Bolivia</td>\n",
       "      <td>1.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>Brazil</td>\n",
       "      <td>5.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>Barbados</td>\n",
       "      <td>2.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>Brunei Darussalam</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>Bhutan</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>Botswana</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>Central African Republic</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>Canada</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>Switzerland</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>165</th>\n",
       "      <td>Sweden</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>166</th>\n",
       "      <td>Eswatini</td>\n",
       "      <td>2.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>167</th>\n",
       "      <td>Seychelles</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>168</th>\n",
       "      <td>Syrian Arab Republic</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>169</th>\n",
       "      <td>Chad</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>170</th>\n",
       "      <td>Togo</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>171</th>\n",
       "      <td>Thailand</td>\n",
       "      <td>10.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>172</th>\n",
       "      <td>Tajikistan</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>173</th>\n",
       "      <td>Timor-Leste</td>\n",
       "      <td>5.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>174</th>\n",
       "      <td>Tonga</td>\n",
       "      <td>3.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>175</th>\n",
       "      <td>South Asia (IDA &amp; IBRD)</td>\n",
       "      <td>5.75</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>176</th>\n",
       "      <td>Trinidad and Tobago</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>177</th>\n",
       "      <td>Tunisia</td>\n",
       "      <td>6.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>178</th>\n",
       "      <td>Turkey</td>\n",
       "      <td>9.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>179</th>\n",
       "      <td>Tanzania</td>\n",
       "      <td>2.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>180</th>\n",
       "      <td>Uganda</td>\n",
       "      <td>3.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>181</th>\n",
       "      <td>Ukraine</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>182</th>\n",
       "      <td>Uruguay</td>\n",
       "      <td>3.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>183</th>\n",
       "      <td>United States</td>\n",
       "      <td>7.40</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>184</th>\n",
       "      <td>Uzbekistan</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>185</th>\n",
       "      <td>St. Vincent and the Grenadines</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>186</th>\n",
       "      <td>Venezuela, RB</td>\n",
       "      <td>3.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>187</th>\n",
       "      <td>Vietnam</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>188</th>\n",
       "      <td>Vanuatu</td>\n",
       "      <td>5.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>189</th>\n",
       "      <td>Samoa</td>\n",
       "      <td>5.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>190</th>\n",
       "      <td>Kosovo</td>\n",
       "      <td>6.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>191</th>\n",
       "      <td>Yemen, Rep.</td>\n",
       "      <td>6.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>192</th>\n",
       "      <td>South Africa</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>193</th>\n",
       "      <td>Zambia</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>194</th>\n",
       "      <td>Zimbabwe</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>195 rows × 2 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                            country  rateeig\n",
       "0                       Afghanistan     8.00\n",
       "1                            Angola     4.00\n",
       "2                           Albania     9.00\n",
       "3              United Arab Emirates    10.00\n",
       "4                         Argentina     7.00\n",
       "5                           Armenia     6.00\n",
       "6               Antigua and Barbuda     4.00\n",
       "7                         Australia     8.00\n",
       "8                           Austria     5.00\n",
       "9                        Azerbaijan    10.00\n",
       "10                          Burundi     8.00\n",
       "11                          Belgium     8.00\n",
       "12                            Benin     7.00\n",
       "13                     Burkina Faso     7.00\n",
       "14                       Bangladesh     6.00\n",
       "15                         Bulgaria    10.00\n",
       "16                          Bahrain     8.00\n",
       "17                     Bahamas, The     2.00\n",
       "18           Bosnia and Herzegovina     3.00\n",
       "19                          Belarus     7.00\n",
       "20                           Belize     3.00\n",
       "21                          Bolivia     1.00\n",
       "22                           Brazil     5.00\n",
       "23                         Barbados     2.00\n",
       "24                Brunei Darussalam     4.00\n",
       "25                           Bhutan     4.00\n",
       "26                         Botswana     7.00\n",
       "27         Central African Republic     7.00\n",
       "28                           Canada     8.00\n",
       "29                      Switzerland     0.00\n",
       "..                              ...      ...\n",
       "165                          Sweden     8.00\n",
       "166                        Eswatini     2.00\n",
       "167                      Seychelles     4.00\n",
       "168            Syrian Arab Republic     7.00\n",
       "169                            Chad     7.00\n",
       "170                            Togo     7.00\n",
       "171                        Thailand    10.00\n",
       "172                      Tajikistan     8.00\n",
       "173                     Timor-Leste     5.00\n",
       "174                           Tonga     3.00\n",
       "175         South Asia (IDA & IBRD)     5.75\n",
       "176             Trinidad and Tobago     4.00\n",
       "177                         Tunisia     6.00\n",
       "178                          Turkey     9.00\n",
       "179                        Tanzania     2.00\n",
       "180                          Uganda     3.00\n",
       "181                         Ukraine     8.00\n",
       "182                         Uruguay     3.00\n",
       "183                   United States     7.40\n",
       "184                      Uzbekistan     8.00\n",
       "185  St. Vincent and the Grenadines     4.00\n",
       "186                   Venezuela, RB     3.00\n",
       "187                         Vietnam     7.00\n",
       "188                         Vanuatu     5.00\n",
       "189                           Samoa     5.00\n",
       "190                          Kosovo     6.00\n",
       "191                     Yemen, Rep.     6.00\n",
       "192                    South Africa     8.00\n",
       "193                          Zambia     4.00\n",
       "194                        Zimbabwe     8.00\n",
       "\n",
       "[195 rows x 2 columns]"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import csv\n",
    "import pandas as pd\n",
    "df = pd.read_csv(\"Business extent of disclosure indexs18.csv\") # 文件要放在同一个目录下面才可以运行\n",
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[('Afghanistan', 8.0), ('Angola', 4.0), ('Albania', 9.0), ('United Arab Emirates', 10.0), ('Argentina', 7.0), ('Armenia', 6.0), ('Antigua and Barbuda', 4.0), ('Australia', 8.0), ('Austria', 5.0), ('Azerbaijan', 10.0), ('Burundi', 8.0), ('Belgium', 8.0), ('Benin', 7.0), ('Burkina Faso', 7.0), ('Bangladesh', 6.0), ('Bulgaria', 10.0), ('Bahrain', 8.0), ('Bahamas, The', 2.0), ('Bosnia and Herzegovina', 3.0), ('Belarus', 7.0), ('Belize', 3.0), ('Bolivia', 1.0), ('Brazil', 5.0), ('Barbados', 2.0), ('Brunei Darussalam', 4.0), ('Bhutan', 4.0), ('Botswana', 7.0), ('Central African Republic', 7.0), ('Canada', 8.0), ('Switzerland', 0.0), ('Chile', 8.0), ('China', 10.0), (\"Cote d'Ivoire\", 7.0), ('Cameroon', 7.0), ('Congo, Dem. Rep.', 7.0), ('Congo, Rep.', 7.0), ('Colombia', 9.0), ('Comoros', 7.0), ('Cabo Verde', 1.0), ('Costa Rica', 5.0), ('Cyprus', 9.0), ('Czech Republic', 2.0), ('Germany', 5.0), ('Djibouti', 8.0), ('Dominica', 4.0), ('Denmark', 7.0), ('Dominican Republic', 5.0), ('Algeria', 4.0), ('East Asia & Pacific (excluding high income)', 5.3), ('Europe & Central Asia (excluding high income)', 7.5), ('Europe & Central Asia', 6.5), ('Ecuador', 2.0), ('Egypt, Arab Rep.', 8.0), ('Eritrea', 3.0), ('Spain', 7.0), ('Estonia', 8.0), ('Ethiopia', 3.0), ('Finland', 6.0), ('Fiji', 2.0), ('France', 8.0), ('Micronesia, Fed. Sts.', 0.0), ('Gabon', 7.0), ('United Kingdom', 10.0), ('Georgia', 9.0), ('Ghana', 7.0), ('Guinea', 7.0), ('Gambia, The', 2.0), ('Guinea-Bissau', 7.0), ('Equatorial Guinea', 7.0), ('Greece', 7.0), ('Grenada', 4.0), ('Guatemala', 3.0), ('Guyana', 5.0), ('Hong Kong SAR, China', 10.0), ('Honduras', 3.0), ('Croatia', 5.0), ('Haiti', 2.0), ('Hungary', 2.0), ('Indonesia', 10.0), ('India', 8.0), ('Ireland', 9.0), ('Iran, Islamic Rep.', 7.0), ('Iraq', 4.0), ('Iceland', 7.0), ('Israel', 7.0), ('Italy', 7.0), ('Jamaica', 4.0), ('Jordan', 4.0), ('Japan', 7.0), ('Kazakhstan', 9.0), ('Kenya', 10.0), ('Kyrgyz Republic', 7.0), ('Cambodia', 6.0), ('Kiribati', 6.0), ('St. Kitts and Nevis', 4.0), ('Korea, Rep.', 8.0), ('Kuwait', 5.0), ('Lao PDR', 6.0), ('Lebanon', 9.0), ('Liberia', 4.0), ('Libya', 4.0), ('St. Lucia', 4.0), ('Liechtenstein', 2.0), ('Sri Lanka', 8.0), ('Lesotho', 3.0), ('Lithuania', 7.0), ('Luxembourg', 6.0), ('Latvia', 5.0), ('Morocco', 9.0), ('Moldova', 7.0), ('Madagascar', 7.0), ('Maldives', 0.0), ('Mexico', 8.0), ('Marshall Islands', 2.0), ('North Macedonia', 10.0), ('Mali', 7.0), ('Malta', 3.0), ('Myanmar', 3.0), ('Montenegro', 5.0), ('Mongolia', 6.0), ('Mozambique', 5.0), ('Mauritania', 6.0), ('Mauritius', 7.0), ('Malawi', 4.0), ('Malaysia', 10.0), ('North America', 7.7), ('Namibia', 5.0), ('Niger', 7.0), ('Nigeria', 7.0), ('Nicaragua', 1.0), ('Netherlands', 4.0), ('Norway', 7.0), ('Nepal', 6.0), ('New Zealand', 10.0), ('Oman', 8.0), ('Pakistan', 6.0), ('Panama', 4.0), ('Peru', 9.0), ('Philippines', 2.0), ('Palau', 0.0), ('Papua New Guinea', 5.0), ('Poland', 7.0), ('Puerto Rico', 7.0), ('Portugal', 6.0), ('Paraguay', 6.0), ('West Bank and Gaza', 6.0), ('Qatar', 2.0), ('Romania', 9.0), ('Russian Federation', 6.0), ('Rwanda', 8.0), ('Saudi Arabia', 9.0), ('Sudan', 3.0), ('Senegal', 7.0), ('Singapore', 10.0), ('Solomon Islands', 3.0), ('Sierra Leone', 6.0), ('El Salvador', 3.0), ('San Marino', 3.0), ('Somalia', 0.0), ('Serbia', 4.0), ('South Sudan', 2.0), ('Sao Tome and Principe', 3.0), ('Suriname', 1.0), ('Slovak Republic', 3.0), ('Slovenia', 5.0), ('Sweden', 8.0), ('Eswatini', 2.0), ('Seychelles', 4.0), ('Syrian Arab Republic', 7.0), ('Chad', 7.0), ('Togo', 7.0), ('Thailand', 10.0), ('Tajikistan', 8.0), ('Timor-Leste', 5.0), ('Tonga', 3.0), ('South Asia (IDA & IBRD)', 5.75), ('Trinidad and Tobago', 4.0), ('Tunisia', 6.0), ('Turkey', 9.0), ('Tanzania', 2.0), ('Uganda', 3.0), ('Ukraine', 8.0), ('Uruguay', 3.0), ('United States', 7.4), ('Uzbekistan', 8.0), ('St. Vincent and the Grenadines', 4.0), ('Venezuela, RB', 3.0), ('Vietnam', 7.0), ('Vanuatu', 5.0), ('Samoa', 5.0), ('Kosovo', 6.0), ('Yemen, Rep.', 6.0), ('South Africa', 8.0), ('Zambia', 4.0), ('Zimbabwe', 8.0)]\n"
     ]
    }
   ],
   "source": [
    "企业信息披露程度指数 = list(zip(list(df.country),list(df.rateeig)))\n",
    "print(企业信息披露程度指数)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://assets.pyecharts.org/assets/echarts.min', 'world':'https://assets.pyecharts.org/assets/maps/world'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "        <div id=\"96675ad99f8f4aae9f5af421bfe4a5b5\" style=\"width:900px; height:500px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts', 'world'], function(echarts) {\n",
       "                var chart_96675ad99f8f4aae9f5af421bfe4a5b5 = echarts.init(\n",
       "                    document.getElementById('96675ad99f8f4aae9f5af421bfe4a5b5'), 'white', {renderer: 'canvas'});\n",
       "                var option_96675ad99f8f4aae9f5af421bfe4a5b5 = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"map\",\n",
       "            \"name\": \"\\u4f01\\u4e1a\\u4fe1\\u606f\\u62ab\\u9732\\u7a0b\\u5ea6\\u6307\\u6570\",\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"mapType\": \"world\",\n",
       "            \"data\": [\n",
       "                {\n",
       "                    \"name\": \"Afghanistan\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Angola\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Albania\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"United Arab Emirates\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Argentina\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Armenia\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Antigua and Barbuda\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Australia\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Austria\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Azerbaijan\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Burundi\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Belgium\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Benin\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Burkina Faso\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bangladesh\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bulgaria\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bahrain\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bahamas, The\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bosnia and Herzegovina\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Belarus\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Belize\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bolivia\",\n",
       "                    \"value\": 1.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Brazil\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Barbados\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Brunei Darussalam\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bhutan\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Botswana\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Central African Republic\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Canada\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Switzerland\",\n",
       "                    \"value\": 0.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Chile\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"China\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cote d'Ivoire\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cameroon\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Congo, Dem. Rep.\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Congo, Rep.\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Colombia\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Comoros\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cabo Verde\",\n",
       "                    \"value\": 1.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Costa Rica\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cyprus\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Czech Republic\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Germany\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Djibouti\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Dominica\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Denmark\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Dominican Republic\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Algeria\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"East Asia & Pacific (excluding high income)\",\n",
       "                    \"value\": 5.3\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Europe & Central Asia (excluding high income)\",\n",
       "                    \"value\": 7.5\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Europe & Central Asia\",\n",
       "                    \"value\": 6.5\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ecuador\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Egypt, Arab Rep.\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Eritrea\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Spain\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Estonia\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ethiopia\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Finland\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Fiji\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"France\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Micronesia, Fed. Sts.\",\n",
       "                    \"value\": 0.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Gabon\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"United Kingdom\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Georgia\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ghana\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guinea\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Gambia, The\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guinea-Bissau\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Equatorial Guinea\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Greece\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Grenada\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guatemala\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guyana\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Hong Kong SAR, China\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Honduras\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Croatia\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Haiti\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Hungary\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Indonesia\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"India\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ireland\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Iran, Islamic Rep.\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Iraq\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Iceland\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Israel\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Italy\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Jamaica\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Jordan\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Japan\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kazakhstan\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kenya\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kyrgyz Republic\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cambodia\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kiribati\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"St. Kitts and Nevis\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Korea, Rep.\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kuwait\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lao PDR\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lebanon\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Liberia\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Libya\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"St. Lucia\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Liechtenstein\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sri Lanka\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lesotho\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lithuania\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Luxembourg\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Latvia\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Morocco\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Moldova\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Madagascar\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Maldives\",\n",
       "                    \"value\": 0.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mexico\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Marshall Islands\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"North Macedonia\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mali\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Malta\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Myanmar\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Montenegro\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mongolia\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mozambique\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mauritania\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mauritius\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Malawi\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Malaysia\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"North America\",\n",
       "                    \"value\": 7.7\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Namibia\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Niger\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Nigeria\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Nicaragua\",\n",
       "                    \"value\": 1.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Netherlands\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Norway\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Nepal\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"New Zealand\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Oman\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Pakistan\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Panama\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Peru\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Philippines\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Palau\",\n",
       "                    \"value\": 0.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Papua New Guinea\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Poland\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Puerto Rico\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Portugal\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Paraguay\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"West Bank and Gaza\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Qatar\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Romania\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Russian Federation\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Rwanda\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Saudi Arabia\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sudan\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Senegal\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Singapore\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Solomon Islands\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sierra Leone\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"El Salvador\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"San Marino\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Somalia\",\n",
       "                    \"value\": 0.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Serbia\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"South Sudan\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sao Tome and Principe\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Suriname\",\n",
       "                    \"value\": 1.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Slovak Republic\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Slovenia\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sweden\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Eswatini\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Seychelles\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Syrian Arab Republic\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Chad\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Togo\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Thailand\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tajikistan\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Timor-Leste\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tonga\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"South Asia (IDA & IBRD)\",\n",
       "                    \"value\": 5.75\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Trinidad and Tobago\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tunisia\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Turkey\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tanzania\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Uganda\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ukraine\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Uruguay\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"United States\",\n",
       "                    \"value\": 7.4\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Uzbekistan\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"St. Vincent and the Grenadines\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Venezuela, RB\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Vietnam\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Vanuatu\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Samoa\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kosovo\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Yemen, Rep.\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"South Africa\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Zambia\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Zimbabwe\",\n",
       "                    \"value\": 8.0\n",
       "                }\n",
       "            ],\n",
       "            \"roam\": true,\n",
       "            \"zoom\": 1,\n",
       "            \"showLegendSymbol\": true,\n",
       "            \"emphasis\": {},\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\\u4f01\\u4e1a\\u4fe1\\u606f\\u62ab\\u9732\\u7a0b\\u5ea6\\u6307\\u6570\"\n",
       "            ],\n",
       "            \"selected\": {\n",
       "                \"\\u4f01\\u4e1a\\u4fe1\\u606f\\u62ab\\u9732\\u7a0b\\u5ea6\\u6307\\u6570\": true\n",
       "            },\n",
       "            \"show\": true\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0\n",
       "    },\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"2018\\u4f01\\u4e1a\\u4fe1\\u606f\\u62ab\\u9732\\u7a0b\\u5ea6\\u6307\\u6570\"\n",
       "        }\n",
       "    ],\n",
       "    \"visualMap\": {\n",
       "        \"show\": true,\n",
       "        \"type\": \"continuous\",\n",
       "        \"min\": 0,\n",
       "        \"max\": 200,\n",
       "        \"inRange\": {\n",
       "            \"color\": [\n",
       "                \"#50a3ba\",\n",
       "                \"#eac763\",\n",
       "                \"#d94e5d\"\n",
       "            ]\n",
       "        },\n",
       "        \"calculable\": true,\n",
       "        \"splitNumber\": 5,\n",
       "        \"orient\": \"vertical\",\n",
       "        \"showLabel\": true\n",
       "    }\n",
       "};\n",
       "                chart_96675ad99f8f4aae9f5af421bfe4a5b5.setOption(option_96675ad99f8f4aae9f5af421bfe4a5b5);\n",
       "        });\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x1b2de927908>"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "from pyecharts.faker import Faker # 随机 Faker 要添加\n",
    "from pyecharts import options as opts\n",
    "from pyecharts.charts import Map # 地图要素要添加\n",
    "from pyecharts.globals import ChartType,SymbolType\n",
    "from pyecharts.charts import Geo # 地理位置要添加\n",
    "\n",
    "def map_world() -> Map:\n",
    "    c = (\n",
    "        Map()\n",
    "        .add(\"企业信息披露程度指数\", 企业信息披露程度指数 , \"world\") # 各国青少年识字率，上面已经是使用字典来将他们来进行合成了\n",
    "        .set_series_opts(label_opts=opts.LabelOpts(is_show=False))\n",
    "        .set_global_opts(\n",
    "            title_opts=opts.TitleOpts(title=\"2018企业信息披露程度指数\"),\n",
    "            visualmap_opts=opts.VisualMapOpts(max_=200),\n",
    "        \n",
    "        )\n",
    "    )\n",
    "    return c\n",
    "\n",
    "企业信息披露程度指数 = map_world()\n",
    "企业信息披露程度指数.render_notebook() "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 发现1：对比19年的数据，可以发现19年的总数是有所增加的，预测原因是因为有国家政策的出台\n",
    "\n",
    "### 发现2：各国的指数是趋缓的，说明世界经济在趋缓发展"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>country</th>\n",
       "      <th>ratef</th>\n",
       "      <th>rates</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Afghanistan</td>\n",
       "      <td>8.00</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Angola</td>\n",
       "      <td>4.00</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>Albania</td>\n",
       "      <td>9.00</td>\n",
       "      <td>9.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>United Arab Emirates</td>\n",
       "      <td>10.00</td>\n",
       "      <td>10.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>Argentina</td>\n",
       "      <td>7.00</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>Armenia</td>\n",
       "      <td>6.00</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>Antigua and Barbuda</td>\n",
       "      <td>4.00</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>Australia</td>\n",
       "      <td>8.00</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>Austria</td>\n",
       "      <td>5.00</td>\n",
       "      <td>5.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>Azerbaijan</td>\n",
       "      <td>10.00</td>\n",
       "      <td>10.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>Burundi</td>\n",
       "      <td>8.00</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>Belgium</td>\n",
       "      <td>8.00</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>Benin</td>\n",
       "      <td>7.00</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>Burkina Faso</td>\n",
       "      <td>7.00</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>Bangladesh</td>\n",
       "      <td>6.00</td>\n",
       "      <td>6.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>Bulgaria</td>\n",
       "      <td>10.00</td>\n",
       "      <td>10.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>Bahrain</td>\n",
       "      <td>8.00</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>Bahamas, The</td>\n",
       "      <td>2.00</td>\n",
       "      <td>3.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>Bosnia and Herzegovina</td>\n",
       "      <td>3.00</td>\n",
       "      <td>3.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>Belarus</td>\n",
       "      <td>7.00</td>\n",
       "      <td>6.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>Belize</td>\n",
       "      <td>3.00</td>\n",
       "      <td>3.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>Bolivia</td>\n",
       "      <td>1.00</td>\n",
       "      <td>1.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>Brazil</td>\n",
       "      <td>5.00</td>\n",
       "      <td>5.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>Barbados</td>\n",
       "      <td>2.00</td>\n",
       "      <td>2.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>Brunei Darussalam</td>\n",
       "      <td>4.00</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>Bhutan</td>\n",
       "      <td>4.00</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>Botswana</td>\n",
       "      <td>7.00</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>Central African Republic</td>\n",
       "      <td>7.00</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>Canada</td>\n",
       "      <td>8.00</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>Switzerland</td>\n",
       "      <td>0.00</td>\n",
       "      <td>0.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>165</th>\n",
       "      <td>Sweden</td>\n",
       "      <td>8.00</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>166</th>\n",
       "      <td>Eswatini</td>\n",
       "      <td>2.00</td>\n",
       "      <td>2.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>167</th>\n",
       "      <td>Seychelles</td>\n",
       "      <td>4.00</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>168</th>\n",
       "      <td>Syrian Arab Republic</td>\n",
       "      <td>7.00</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>169</th>\n",
       "      <td>Chad</td>\n",
       "      <td>7.00</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>170</th>\n",
       "      <td>Togo</td>\n",
       "      <td>7.00</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>171</th>\n",
       "      <td>Thailand</td>\n",
       "      <td>10.00</td>\n",
       "      <td>10.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>172</th>\n",
       "      <td>Tajikistan</td>\n",
       "      <td>8.00</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>173</th>\n",
       "      <td>Timor-Leste</td>\n",
       "      <td>5.00</td>\n",
       "      <td>5.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>174</th>\n",
       "      <td>Tonga</td>\n",
       "      <td>3.00</td>\n",
       "      <td>3.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>175</th>\n",
       "      <td>South Asia (IDA &amp; IBRD)</td>\n",
       "      <td>5.75</td>\n",
       "      <td>5.75</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>176</th>\n",
       "      <td>Trinidad and Tobago</td>\n",
       "      <td>4.00</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>177</th>\n",
       "      <td>Tunisia</td>\n",
       "      <td>6.00</td>\n",
       "      <td>6.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>178</th>\n",
       "      <td>Turkey</td>\n",
       "      <td>9.00</td>\n",
       "      <td>9.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>179</th>\n",
       "      <td>Tanzania</td>\n",
       "      <td>2.00</td>\n",
       "      <td>2.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>180</th>\n",
       "      <td>Uganda</td>\n",
       "      <td>3.00</td>\n",
       "      <td>3.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>181</th>\n",
       "      <td>Ukraine</td>\n",
       "      <td>8.00</td>\n",
       "      <td>9.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>182</th>\n",
       "      <td>Uruguay</td>\n",
       "      <td>3.00</td>\n",
       "      <td>3.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>183</th>\n",
       "      <td>United States</td>\n",
       "      <td>7.40</td>\n",
       "      <td>7.40</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>184</th>\n",
       "      <td>Uzbekistan</td>\n",
       "      <td>8.00</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>185</th>\n",
       "      <td>St. Vincent and the Grenadines</td>\n",
       "      <td>4.00</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>186</th>\n",
       "      <td>Venezuela, RB</td>\n",
       "      <td>3.00</td>\n",
       "      <td>3.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>187</th>\n",
       "      <td>Vietnam</td>\n",
       "      <td>7.00</td>\n",
       "      <td>7.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>188</th>\n",
       "      <td>Vanuatu</td>\n",
       "      <td>5.00</td>\n",
       "      <td>5.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>189</th>\n",
       "      <td>Samoa</td>\n",
       "      <td>5.00</td>\n",
       "      <td>5.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>190</th>\n",
       "      <td>Kosovo</td>\n",
       "      <td>6.00</td>\n",
       "      <td>9.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>191</th>\n",
       "      <td>Yemen, Rep.</td>\n",
       "      <td>6.00</td>\n",
       "      <td>6.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>192</th>\n",
       "      <td>South Africa</td>\n",
       "      <td>8.00</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>193</th>\n",
       "      <td>Zambia</td>\n",
       "      <td>4.00</td>\n",
       "      <td>4.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>194</th>\n",
       "      <td>Zimbabwe</td>\n",
       "      <td>8.00</td>\n",
       "      <td>8.00</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>195 rows × 3 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                            country  ratef  rates\n",
       "0                       Afghanistan   8.00   8.00\n",
       "1                            Angola   4.00   4.00\n",
       "2                           Albania   9.00   9.00\n",
       "3              United Arab Emirates  10.00  10.00\n",
       "4                         Argentina   7.00   7.00\n",
       "5                           Armenia   6.00   7.00\n",
       "6               Antigua and Barbuda   4.00   4.00\n",
       "7                         Australia   8.00   8.00\n",
       "8                           Austria   5.00   5.00\n",
       "9                        Azerbaijan  10.00  10.00\n",
       "10                          Burundi   8.00   8.00\n",
       "11                          Belgium   8.00   8.00\n",
       "12                            Benin   7.00   7.00\n",
       "13                     Burkina Faso   7.00   7.00\n",
       "14                       Bangladesh   6.00   6.00\n",
       "15                         Bulgaria  10.00  10.00\n",
       "16                          Bahrain   8.00   8.00\n",
       "17                     Bahamas, The   2.00   3.00\n",
       "18           Bosnia and Herzegovina   3.00   3.00\n",
       "19                          Belarus   7.00   6.00\n",
       "20                           Belize   3.00   3.00\n",
       "21                          Bolivia   1.00   1.00\n",
       "22                           Brazil   5.00   5.00\n",
       "23                         Barbados   2.00   2.00\n",
       "24                Brunei Darussalam   4.00   4.00\n",
       "25                           Bhutan   4.00   4.00\n",
       "26                         Botswana   7.00   7.00\n",
       "27         Central African Republic   7.00   7.00\n",
       "28                           Canada   8.00   8.00\n",
       "29                      Switzerland   0.00   0.00\n",
       "..                              ...    ...    ...\n",
       "165                          Sweden   8.00   8.00\n",
       "166                        Eswatini   2.00   2.00\n",
       "167                      Seychelles   4.00   4.00\n",
       "168            Syrian Arab Republic   7.00   7.00\n",
       "169                            Chad   7.00   7.00\n",
       "170                            Togo   7.00   7.00\n",
       "171                        Thailand  10.00  10.00\n",
       "172                      Tajikistan   8.00   8.00\n",
       "173                     Timor-Leste   5.00   5.00\n",
       "174                           Tonga   3.00   3.00\n",
       "175         South Asia (IDA & IBRD)   5.75   5.75\n",
       "176             Trinidad and Tobago   4.00   4.00\n",
       "177                         Tunisia   6.00   6.00\n",
       "178                          Turkey   9.00   9.00\n",
       "179                        Tanzania   2.00   2.00\n",
       "180                          Uganda   3.00   3.00\n",
       "181                         Ukraine   8.00   9.00\n",
       "182                         Uruguay   3.00   3.00\n",
       "183                   United States   7.40   7.40\n",
       "184                      Uzbekistan   8.00   8.00\n",
       "185  St. Vincent and the Grenadines   4.00   4.00\n",
       "186                   Venezuela, RB   3.00   3.00\n",
       "187                         Vietnam   7.00   7.00\n",
       "188                         Vanuatu   5.00   5.00\n",
       "189                           Samoa   5.00   5.00\n",
       "190                          Kosovo   6.00   9.00\n",
       "191                     Yemen, Rep.   6.00   6.00\n",
       "192                    South Africa   8.00   8.00\n",
       "193                          Zambia   4.00   4.00\n",
       "194                        Zimbabwe   8.00   8.00\n",
       "\n",
       "[195 rows x 3 columns]"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import csv\n",
    "import pandas as pd\n",
    "df = pd.read_csv(\"Business extent of disclosure indexs.csv\") # 文件要放在同一个目录下面才可以运行\n",
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[('Afghanistan', 8.0), ('Angola', 4.0), ('Albania', 9.0), ('United Arab Emirates', 10.0), ('Argentina', 7.0), ('Armenia', 6.0), ('Antigua and Barbuda', 4.0), ('Australia', 8.0), ('Austria', 5.0), ('Azerbaijan', 10.0), ('Burundi', 8.0), ('Belgium', 8.0), ('Benin', 7.0), ('Burkina Faso', 7.0), ('Bangladesh', 6.0), ('Bulgaria', 10.0), ('Bahrain', 8.0), ('Bahamas, The', 2.0), ('Bosnia and Herzegovina', 3.0), ('Belarus', 7.0), ('Belize', 3.0), ('Bolivia', 1.0), ('Brazil', 5.0), ('Barbados', 2.0), ('Brunei Darussalam', 4.0), ('Bhutan', 4.0), ('Botswana', 7.0), ('Central African Republic', 7.0), ('Canada', 8.0), ('Switzerland', 0.0), ('Chile', 8.0), ('China', 10.0), (\"Cote d'Ivoire\", 7.0), ('Cameroon', 7.0), ('Congo, Dem. Rep.', 7.0), ('Congo, Rep.', 7.0), ('Colombia', 9.0), ('Comoros', 7.0), ('Cabo Verde', 1.0), ('Costa Rica', 5.0), ('Cyprus', 9.0), ('Czech Republic', 2.0), ('Germany', 5.0), ('Djibouti', 8.0), ('Dominica', 4.0), ('Denmark', 7.0), ('Dominican Republic', 5.0), ('Algeria', 4.0), ('East Asia & Pacific (excluding high income)', 5.3), ('Europe & Central Asia (excluding high income)', 7.5), ('Europe & Central Asia', 6.5), ('Ecuador', 2.0), ('Egypt, Arab Rep.', 8.0), ('Eritrea', 3.0), ('Spain', 7.0), ('Estonia', 8.0), ('Ethiopia', 3.0), ('Finland', 6.0), ('Fiji', 2.0), ('France', 8.0), ('Micronesia, Fed. Sts.', 0.0), ('Gabon', 7.0), ('United Kingdom', 10.0), ('Georgia', 9.0), ('Ghana', 7.0), ('Guinea', 7.0), ('Gambia, The', 2.0), ('Guinea-Bissau', 7.0), ('Equatorial Guinea', 7.0), ('Greece', 7.0), ('Grenada', 4.0), ('Guatemala', 3.0), ('Guyana', 5.0), ('Hong Kong SAR, China', 10.0), ('Honduras', 3.0), ('Croatia', 5.0), ('Haiti', 2.0), ('Hungary', 2.0), ('Indonesia', 10.0), ('India', 8.0), ('Ireland', 9.0), ('Iran, Islamic Rep.', 7.0), ('Iraq', 4.0), ('Iceland', 7.0), ('Israel', 7.0), ('Italy', 7.0), ('Jamaica', 4.0), ('Jordan', 4.0), ('Japan', 7.0), ('Kazakhstan', 9.0), ('Kenya', 10.0), ('Kyrgyz Republic', 7.0), ('Cambodia', 6.0), ('Kiribati', 6.0), ('St. Kitts and Nevis', 4.0), ('Korea, Rep.', 8.0), ('Kuwait', 5.0), ('Lao PDR', 6.0), ('Lebanon', 9.0), ('Liberia', 4.0), ('Libya', 4.0), ('St. Lucia', 4.0), ('Liechtenstein', 2.0), ('Sri Lanka', 8.0), ('Lesotho', 3.0), ('Lithuania', 7.0), ('Luxembourg', 6.0), ('Latvia', 5.0), ('Morocco', 9.0), ('Moldova', 7.0), ('Madagascar', 7.0), ('Maldives', 0.0), ('Mexico', 8.0), ('Marshall Islands', 2.0), ('North Macedonia', 10.0), ('Mali', 7.0), ('Malta', 3.0), ('Myanmar', 3.0), ('Montenegro', 5.0), ('Mongolia', 6.0), ('Mozambique', 5.0), ('Mauritania', 6.0), ('Mauritius', 7.0), ('Malawi', 4.0), ('Malaysia', 10.0), ('North America', 7.7), ('Namibia', 5.0), ('Niger', 7.0), ('Nigeria', 7.0), ('Nicaragua', 1.0), ('Netherlands', 4.0), ('Norway', 7.0), ('Nepal', 6.0), ('New Zealand', 10.0), ('Oman', 8.0), ('Pakistan', 6.0), ('Panama', 4.0), ('Peru', 9.0), ('Philippines', 2.0), ('Palau', 0.0), ('Papua New Guinea', 5.0), ('Poland', 7.0), ('Puerto Rico', 7.0), ('Portugal', 6.0), ('Paraguay', 6.0), ('West Bank and Gaza', 6.0), ('Qatar', 2.0), ('Romania', 9.0), ('Russian Federation', 6.0), ('Rwanda', 8.0), ('Saudi Arabia', 9.0), ('Sudan', 3.0), ('Senegal', 7.0), ('Singapore', 10.0), ('Solomon Islands', 3.0), ('Sierra Leone', 6.0), ('El Salvador', 3.0), ('San Marino', 3.0), ('Somalia', 0.0), ('Serbia', 4.0), ('South Sudan', 2.0), ('Sao Tome and Principe', 3.0), ('Suriname', 1.0), ('Slovak Republic', 3.0), ('Slovenia', 5.0), ('Sweden', 8.0), ('Eswatini', 2.0), ('Seychelles', 4.0), ('Syrian Arab Republic', 7.0), ('Chad', 7.0), ('Togo', 7.0), ('Thailand', 10.0), ('Tajikistan', 8.0), ('Timor-Leste', 5.0), ('Tonga', 3.0), ('South Asia (IDA & IBRD)', 5.75), ('Trinidad and Tobago', 4.0), ('Tunisia', 6.0), ('Turkey', 9.0), ('Tanzania', 2.0), ('Uganda', 3.0), ('Ukraine', 8.0), ('Uruguay', 3.0), ('United States', 7.4), ('Uzbekistan', 8.0), ('St. Vincent and the Grenadines', 4.0), ('Venezuela, RB', 3.0), ('Vietnam', 7.0), ('Vanuatu', 5.0), ('Samoa', 5.0), ('Kosovo', 6.0), ('Yemen, Rep.', 6.0), ('South Africa', 8.0), ('Zambia', 4.0), ('Zimbabwe', 8.0)]\n"
     ]
    }
   ],
   "source": [
    "企业信息披露程度指数 = list(zip(list(df.country),list(df.ratef))) # 列的名字不能是数字必须是英文\n",
    "print(企业信息披露程度指数)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://assets.pyecharts.org/assets/echarts.min', 'world':'https://assets.pyecharts.org/assets/maps/world'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "        <div id=\"f39cf71c599443cea924b01b4deed126\" style=\"width:900px; height:500px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts', 'world'], function(echarts) {\n",
       "                var chart_f39cf71c599443cea924b01b4deed126 = echarts.init(\n",
       "                    document.getElementById('f39cf71c599443cea924b01b4deed126'), 'white', {renderer: 'canvas'});\n",
       "                var option_f39cf71c599443cea924b01b4deed126 = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"map\",\n",
       "            \"name\": \"\\u4f01\\u4e1a\\u4fe1\\u606f\\u62ab\\u9732\\u7a0b\\u5ea6\\u6307\\u6570\",\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"mapType\": \"world\",\n",
       "            \"data\": [\n",
       "                {\n",
       "                    \"name\": \"Afghanistan\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Angola\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Albania\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"United Arab Emirates\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Argentina\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Armenia\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Antigua and Barbuda\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Australia\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Austria\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Azerbaijan\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Burundi\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Belgium\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Benin\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Burkina Faso\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bangladesh\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bulgaria\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bahrain\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bahamas, The\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bosnia and Herzegovina\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Belarus\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Belize\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bolivia\",\n",
       "                    \"value\": 1.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Brazil\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Barbados\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Brunei Darussalam\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bhutan\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Botswana\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Central African Republic\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Canada\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Switzerland\",\n",
       "                    \"value\": 0.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Chile\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"China\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cote d'Ivoire\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cameroon\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Congo, Dem. Rep.\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Congo, Rep.\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Colombia\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Comoros\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cabo Verde\",\n",
       "                    \"value\": 1.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Costa Rica\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cyprus\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Czech Republic\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Germany\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Djibouti\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Dominica\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Denmark\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Dominican Republic\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Algeria\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"East Asia & Pacific (excluding high income)\",\n",
       "                    \"value\": 5.3\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Europe & Central Asia (excluding high income)\",\n",
       "                    \"value\": 7.5\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Europe & Central Asia\",\n",
       "                    \"value\": 6.5\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ecuador\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Egypt, Arab Rep.\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Eritrea\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Spain\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Estonia\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ethiopia\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Finland\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Fiji\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"France\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Micronesia, Fed. Sts.\",\n",
       "                    \"value\": 0.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Gabon\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"United Kingdom\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Georgia\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ghana\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guinea\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Gambia, The\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guinea-Bissau\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Equatorial Guinea\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Greece\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Grenada\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guatemala\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guyana\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Hong Kong SAR, China\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Honduras\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Croatia\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Haiti\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Hungary\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Indonesia\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"India\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ireland\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Iran, Islamic Rep.\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Iraq\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Iceland\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Israel\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Italy\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Jamaica\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Jordan\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Japan\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kazakhstan\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kenya\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kyrgyz Republic\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cambodia\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kiribati\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"St. Kitts and Nevis\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Korea, Rep.\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kuwait\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lao PDR\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lebanon\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Liberia\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Libya\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"St. Lucia\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Liechtenstein\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sri Lanka\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lesotho\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lithuania\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Luxembourg\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Latvia\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Morocco\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Moldova\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Madagascar\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Maldives\",\n",
       "                    \"value\": 0.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mexico\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Marshall Islands\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"North Macedonia\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mali\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Malta\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Myanmar\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Montenegro\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mongolia\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mozambique\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mauritania\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mauritius\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Malawi\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Malaysia\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"North America\",\n",
       "                    \"value\": 7.7\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Namibia\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Niger\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Nigeria\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Nicaragua\",\n",
       "                    \"value\": 1.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Netherlands\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Norway\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Nepal\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"New Zealand\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Oman\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Pakistan\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Panama\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Peru\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Philippines\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Palau\",\n",
       "                    \"value\": 0.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Papua New Guinea\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Poland\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Puerto Rico\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Portugal\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Paraguay\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"West Bank and Gaza\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Qatar\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Romania\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Russian Federation\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Rwanda\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Saudi Arabia\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sudan\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Senegal\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Singapore\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Solomon Islands\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sierra Leone\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"El Salvador\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"San Marino\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Somalia\",\n",
       "                    \"value\": 0.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Serbia\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"South Sudan\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sao Tome and Principe\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Suriname\",\n",
       "                    \"value\": 1.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Slovak Republic\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Slovenia\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sweden\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Eswatini\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Seychelles\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Syrian Arab Republic\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Chad\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Togo\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Thailand\",\n",
       "                    \"value\": 10.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tajikistan\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Timor-Leste\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tonga\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"South Asia (IDA & IBRD)\",\n",
       "                    \"value\": 5.75\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Trinidad and Tobago\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tunisia\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Turkey\",\n",
       "                    \"value\": 9.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tanzania\",\n",
       "                    \"value\": 2.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Uganda\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ukraine\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Uruguay\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"United States\",\n",
       "                    \"value\": 7.4\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Uzbekistan\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"St. Vincent and the Grenadines\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Venezuela, RB\",\n",
       "                    \"value\": 3.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Vietnam\",\n",
       "                    \"value\": 7.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Vanuatu\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Samoa\",\n",
       "                    \"value\": 5.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kosovo\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Yemen, Rep.\",\n",
       "                    \"value\": 6.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"South Africa\",\n",
       "                    \"value\": 8.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Zambia\",\n",
       "                    \"value\": 4.0\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Zimbabwe\",\n",
       "                    \"value\": 8.0\n",
       "                }\n",
       "            ],\n",
       "            \"roam\": true,\n",
       "            \"zoom\": 1,\n",
       "            \"showLegendSymbol\": true,\n",
       "            \"emphasis\": {},\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\\u4f01\\u4e1a\\u4fe1\\u606f\\u62ab\\u9732\\u7a0b\\u5ea6\\u6307\\u6570\"\n",
       "            ],\n",
       "            \"selected\": {\n",
       "                \"\\u4f01\\u4e1a\\u4fe1\\u606f\\u62ab\\u9732\\u7a0b\\u5ea6\\u6307\\u6570\": true\n",
       "            },\n",
       "            \"show\": true\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0\n",
       "    },\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"\\u4f01\\u4e1a\\u4fe1\\u606f\\u62ab\\u9732\\u7a0b\\u5ea6\\u6307\\u6570\"\n",
       "        }\n",
       "    ],\n",
       "    \"visualMap\": {\n",
       "        \"show\": true,\n",
       "        \"type\": \"continuous\",\n",
       "        \"min\": 0,\n",
       "        \"max\": 200,\n",
       "        \"inRange\": {\n",
       "            \"color\": [\n",
       "                \"#50a3ba\",\n",
       "                \"#eac763\",\n",
       "                \"#d94e5d\"\n",
       "            ]\n",
       "        },\n",
       "        \"calculable\": true,\n",
       "        \"splitNumber\": 5,\n",
       "        \"orient\": \"vertical\",\n",
       "        \"showLabel\": true\n",
       "    }\n",
       "};\n",
       "                chart_f39cf71c599443cea924b01b4deed126.setOption(option_f39cf71c599443cea924b01b4deed126);\n",
       "        });\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x1b2dec42e10>"
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "from pyecharts.faker import Faker # 随机 Faker 要添加\n",
    "from pyecharts import options as opts\n",
    "from pyecharts.charts import Map # 地图要素要添加\n",
    "from pyecharts.globals import ChartType,SymbolType\n",
    "from pyecharts.charts import Geo # 地理位置要添加\n",
    "\n",
    "def map_world() -> Map:\n",
    "    c = (\n",
    "        Map()\n",
    "        .add(\"企业信息披露程度指数\", 企业信息披露程度指数 , \"world\") # 企业信息披露程度指数，上面已经是使用字典来将他们来进行合成了\n",
    "        .set_series_opts(label_opts=opts.LabelOpts(is_show=False))\n",
    "        .set_global_opts(\n",
    "            title_opts=opts.TitleOpts(title=\"企业信息披露程度指数\"),\n",
    "            visualmap_opts=opts.VisualMapOpts(max_=200),\n",
    "        )\n",
    "    )\n",
    "    return c\n",
    "\n",
    "企业信息披露程度指数 = map_world()\n",
    "企业信息披露程度指数.render_notebook() # 显示不出来所以应该是使用英文csv才对"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
